jquery-wizard.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define("/Plugin/jquery-wizard", ["exports", "Plugin"], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory(exports, require("Plugin"));
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory(mod.exports, global.Plugin);
  11. global.PluginJqueryWizard = mod.exports;
  12. }
  13. })(this, function (_exports, _Plugin2) {
  14. "use strict";
  15. Object.defineProperty(_exports, "__esModule", {
  16. value: true
  17. });
  18. _exports.default = void 0;
  19. _Plugin2 = babelHelpers.interopRequireDefault(_Plugin2);
  20. var NAME = 'wizard';
  21. var Wizard =
  22. /*#__PURE__*/
  23. function (_Plugin) {
  24. babelHelpers.inherits(Wizard, _Plugin);
  25. function Wizard() {
  26. babelHelpers.classCallCheck(this, Wizard);
  27. return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Wizard).apply(this, arguments));
  28. }
  29. babelHelpers.createClass(Wizard, [{
  30. key: "getName",
  31. value: function getName() {
  32. return NAME;
  33. }
  34. }], [{
  35. key: "getDefaults",
  36. value: function getDefaults() {
  37. return {
  38. step: '.steps .step, .pearls .pearl',
  39. templates: {
  40. buttons: function buttons() {
  41. var options = this.options;
  42. return "<div class=\"wizard-buttons\"><a class=\"btn btn-default btn-outline\" href=\"#".concat(this.id, "\" data-wizard=\"back\" role=\"button\">").concat(options.buttonLabels.back, "</a><a class=\"btn btn-primary btn-outline float-right\" href=\"#").concat(this.id, "\" data-wizard=\"next\" role=\"button\">").concat(options.buttonLabels.next, "</a><a class=\"btn btn-success btn-outline float-right\" href=\"#").concat(this.id, "\" data-wizard=\"finish\" role=\"button\">").concat(options.buttonLabels.finish, "</a></div>");
  43. }
  44. },
  45. classes: {
  46. step: {
  47. done: 'done',
  48. error: 'error',
  49. active: 'active',
  50. disabled: 'disabled',
  51. activing: 'activing',
  52. loading: 'loading'
  53. },
  54. pane: {
  55. active: 'active',
  56. activing: 'activing'
  57. },
  58. button: {
  59. hide: 'hidden-xs-up',
  60. disabled: 'disabled'
  61. }
  62. }
  63. };
  64. }
  65. }]);
  66. return Wizard;
  67. }(_Plugin2.default);
  68. _Plugin2.default.register(NAME, Wizard);
  69. var _default = Wizard;
  70. _exports.default = _default;
  71. });