tablesaw.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define("/Plugin/tablesaw", ["exports", "jquery", "Plugin"], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory(exports, require("jquery"), require("Plugin"));
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory(mod.exports, global.jQuery, global.Plugin);
  11. global.PluginTablesaw = mod.exports;
  12. }
  13. })(this, function (_exports, _jquery, _Plugin2) {
  14. "use strict";
  15. Object.defineProperty(_exports, "__esModule", {
  16. value: true
  17. });
  18. _exports.default = void 0;
  19. _jquery = babelHelpers.interopRequireDefault(_jquery);
  20. _Plugin2 = babelHelpers.interopRequireDefault(_Plugin2);
  21. var NAME = 'tablesaw';
  22. var Tablesaw =
  23. /*#__PURE__*/
  24. function (_Plugin) {
  25. babelHelpers.inherits(Tablesaw, _Plugin);
  26. function Tablesaw() {
  27. babelHelpers.classCallCheck(this, Tablesaw);
  28. return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Tablesaw).apply(this, arguments));
  29. }
  30. babelHelpers.createClass(Tablesaw, [{
  31. key: "getName",
  32. value: function getName() {
  33. return NAME;
  34. }
  35. }], [{
  36. key: "getDefaults",
  37. value: function getDefaults() {
  38. return {};
  39. }
  40. }, {
  41. key: "api",
  42. value: function api() {
  43. return function () {
  44. if (typeof _jquery.default.fn.tablesaw === 'undefined') {
  45. return;
  46. }
  47. (0, _jquery.default)(document).trigger('enhance.tablesaw');
  48. };
  49. }
  50. }]);
  51. return Tablesaw;
  52. }(_Plugin2.default);
  53. _Plugin2.default.register(NAME, Tablesaw);
  54. var _default = Tablesaw;
  55. _exports.default = _default;
  56. });