sas-ui 0.8.240 → 0.8.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modules-4e8de2b1.js → modules-afda8d84.js} +2 -0
- package/dist/cjs/{sas-chat-bubble_12.cjs.entry.js → sas-button_13.cjs.entry.js} +109 -1
- package/dist/cjs/sas-form.cjs.entry.js +3 -1
- package/dist/cjs/sas-ui.cjs.js +2 -2
- package/dist/collection/components/sas-dialog/sas-dialog.js +2 -0
- package/dist/collection/components/sas-form/sas-form.js +3 -1
- package/dist/collection/components/sas-setup-guide-tile/sas-setup-guide-tile.js +6 -1
- package/dist/custom-elements/index.js +11 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{modules-2598bd67.js → modules-bda8500a.js} +2 -0
- package/dist/esm/{sas-chat-bubble_12.entry.js → sas-button_13.entry.js} +110 -3
- package/dist/esm/sas-form.entry.js +3 -1
- package/dist/esm/sas-ui.js +2 -2
- package/dist/sas-ui/p-6adeec3b.entry.js +1 -0
- package/dist/sas-ui/{p-6a561df2.entry.js → p-6f944534.entry.js} +1 -1
- package/dist/sas-ui/{p-24b7df27.js → p-e39782a0.js} +1 -1
- package/dist/sas-ui/sas-ui.esm.js +1 -1
- package/dist/types/components/sas-setup-guide-tile/sas-setup-guide-tile.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/sas-button.cjs.entry.js +0 -110
- package/dist/esm/sas-button.entry.js +0 -106
- package/dist/sas-ui/p-2680499f.entry.js +0 -1
- package/dist/sas-ui/p-7f77e396.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-cd75521b.js');
|
|
6
|
-
require('./modules-
|
|
6
|
+
require('./modules-afda8d84.js');
|
|
7
7
|
require('./_commonjsHelpers-537d719a.js');
|
|
8
8
|
|
|
9
9
|
/*
|
|
@@ -16,7 +16,7 @@ const patchEsm = () => {
|
|
|
16
16
|
const defineCustomElements = (win, options) => {
|
|
17
17
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
18
18
|
return patchEsm().then(() => {
|
|
19
|
-
return index.bootstrapLazy(JSON.parse("[[\"sas-chat-bubble_12.cjs\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect.cjs\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range.cjs\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select.cjs\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field.cjs\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card.cjs\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar.cjs\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card.cjs\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top.cjs\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper.cjs\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination.cjs\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group.cjs\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload.cjs\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert.cjs\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel.cjs\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details.cjs\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation.cjs\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group.cjs\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb.cjs\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group.cjs\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container.cjs\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group.cjs\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form.cjs\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab.cjs\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item.cjs\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field.cjs\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group.cjs\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio.cjs\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge.cjs\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider.cjs\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch.cjs\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar.cjs\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table.cjs\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image.cjs\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2.cjs\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-button.cjs\",[[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}]]],[\"sas-form-input-template_4.cjs\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
19
|
+
return index.bootstrapLazy(JSON.parse("[[\"sas-button_13.cjs\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect.cjs\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range.cjs\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select.cjs\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field.cjs\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card.cjs\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar.cjs\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card.cjs\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top.cjs\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper.cjs\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination.cjs\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group.cjs\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload.cjs\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert.cjs\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel.cjs\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details.cjs\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation.cjs\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group.cjs\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb.cjs\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group.cjs\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container.cjs\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group.cjs\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form.cjs\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab.cjs\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item.cjs\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field.cjs\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group.cjs\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio.cjs\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge.cjs\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider.cjs\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch.cjs\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar.cjs\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table.cjs\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image.cjs\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2.cjs\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-form-input-template_4.cjs\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -3430,6 +3430,8 @@ function init$1(options) {
|
|
|
3430
3430
|
width: options.width ?? '600px',
|
|
3431
3431
|
showConfirmButton: false,
|
|
3432
3432
|
padding: "30px",
|
|
3433
|
+
allowOutsideClick: options.allowOutsideClick ?? true,
|
|
3434
|
+
allowEscapeKey: options.allowEscapeKey ?? true,
|
|
3433
3435
|
customClass: {
|
|
3434
3436
|
popup: 'sas-dialog-swal-custom-popup',
|
|
3435
3437
|
header: 'sas-dialog-swal-custom-header',
|
|
@@ -5,6 +5,108 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-cd75521b.js');
|
|
6
6
|
const global = require('./global-fcd219ac.js');
|
|
7
7
|
|
|
8
|
+
const sasButtonCss = ":host{display:inline-block}:host .container{display:inline-flex;justify-content:space-between;align-items:center;box-sizing:border-box;font-weight:500;cursor:pointer;position:relative;border-radius:var(--button-border-radius, 5px);margin:var(--button-margin, 0);line-height:normal;width:var(--button-width, initial)}:host .container:before{content:\"\";position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);border-radius:inherit;background-color:currentColor;opacity:0}:host .container:focus{outline:none}:host .container:hover:before,:host .container:focus:before{opacity:0.24}:host .anchor{position:absolute;left:0;top:0;height:100%;width:100%}:host .button-main-content{display:inline-flex;justify-content:center;align-items:center;flex-grow:1}:host .button-icon{margin:0 4px;--icon-color:currentColor}:host .button-text{margin:0 4px;white-space:nowrap}:host(:focus){outline:none}:host([tabindex=\"0\"]) .container:active:before{opacity:0.48}:host([size=exlarge]) .container{font-size:var(--button-font-size, 22px);padding:var(--button-padding, 0 20px);height:var(--button-height, 64px);--icon-background-width:var(--button-font-size, 22px);--icon-background-height:var(--button-font-size, 22px);--icon-size:var(--button-font-size, 22px)}:host([size=large]) .container{font-size:var(--button-font-size, 16px);padding:var(--button-padding, 0 20px);height:var(--button-height, 46px);--icon-background-width:var(--button-font-size, 16px);--icon-background-height:var(--button-font-size, 16px);--icon-size:var(--button-font-size, 16px)}:host([size=default]) .container{font-size:var(--button-font-size, 14px);padding:var(--button-padding, 0 20px);height:var(--button-height, 40px);--icon-background-width:var(--button-font-size, 14px);--icon-background-height:var(--button-font-size, 14px);--icon-size:var(--button-font-size, 14px)}:host([size=small]) .container{font-size:var(--button-font-size, 12px);padding:var(--button-padding, 0 10px);height:var(--button-height, 29px);--icon-background-width:var(--button-font-size, 12px);--icon-background-height:var(--button-font-size, 12px);--icon-size:var(--button-font-size, 12px)}:host([type=primary]) .container{background-color:var(--button-background-color, var(--primary));color:var(--button-color, white);border:var(--button-border, 1px solid var(--primary))}:host([type=secondary]) .container{background-color:var(--button-background-color, var(--s-200));color:var(--button-color, var(--secondary));border:var(--button-border, 1px solid var(--s-200))}:host([type=text]) .container{background-color:var(--button-background-color, white);color:var(--button-color, var(--secondary));border:var(--button-border, 1px solid var(--s-300))}:host([disabled]:not([disabled=false])){pointer-events:none}:host([disabled]:not([disabled=false])) .container{background-color:var(--button-background-color, var(--button-disabled-background));color:var(--button-color, var(--button-disabled-text));border:var(--button-border, 1px solid var(--button-disabled-background))}:host([type=text][disabled]:not([disabled=false])) .container{background-color:var(--button-background-color, var(--button-text-background));border:var(--button-border, 1px solid var(--button-text-disabled-border))}:host([block]:not([block=false])){width:100%}:host([block]:not([block=false])) .container{width:100%}:host([loading]:not([loading=false])) .container{pointer-events:none}:host([loading]:not([loading=false])) .loading-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);--icon-color:currentColor}:host([loading]:not([loading=false])) .button-icon,:host([loading]:not([loading=false])) .button-text{opacity:0}";
|
|
9
|
+
|
|
10
|
+
let SasButton = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.buttonClicked = index.createEvent(this, "buttonClicked", 7);
|
|
14
|
+
this.buttonclicked = index.createEvent(this, "buttonclicked", 7);
|
|
15
|
+
/**
|
|
16
|
+
* Type
|
|
17
|
+
*/
|
|
18
|
+
this.type = 'primary';
|
|
19
|
+
/**
|
|
20
|
+
* Size
|
|
21
|
+
*/
|
|
22
|
+
this.size = 'default';
|
|
23
|
+
/**
|
|
24
|
+
* Text
|
|
25
|
+
*/
|
|
26
|
+
this.text = 'button';
|
|
27
|
+
/**
|
|
28
|
+
* Icon left
|
|
29
|
+
*/
|
|
30
|
+
this.iconLeft = null;
|
|
31
|
+
/**
|
|
32
|
+
* Icon
|
|
33
|
+
*/
|
|
34
|
+
this.icon = null;
|
|
35
|
+
/**
|
|
36
|
+
* Icon position
|
|
37
|
+
*/
|
|
38
|
+
this.iconPosition = 'left';
|
|
39
|
+
/**
|
|
40
|
+
* Expands the button to 100% of available space
|
|
41
|
+
*/
|
|
42
|
+
this.block = false;
|
|
43
|
+
/**
|
|
44
|
+
* Adds a loading icon animation
|
|
45
|
+
*/
|
|
46
|
+
this.loading = false;
|
|
47
|
+
/**
|
|
48
|
+
* Disabled
|
|
49
|
+
*/
|
|
50
|
+
this.disabled = false;
|
|
51
|
+
/**
|
|
52
|
+
* Designates the component as anchor and applies the href attribute.
|
|
53
|
+
*/
|
|
54
|
+
this.href = null;
|
|
55
|
+
/**
|
|
56
|
+
* Designates the target attribute. This should only be applied when using the href prop.
|
|
57
|
+
*/
|
|
58
|
+
this.target = '';
|
|
59
|
+
this.tabindexNumber = 0;
|
|
60
|
+
this.clickEvent = (event) => {
|
|
61
|
+
const index = this.getClickedElementIndex(event.target);
|
|
62
|
+
this.buttonClicked.emit(index);
|
|
63
|
+
this.buttonclicked.emit(index);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
componentWillRender() {
|
|
67
|
+
if (this.disabled) {
|
|
68
|
+
this.tabindexNumber = -1;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.tabindexNumber = 0;
|
|
72
|
+
}
|
|
73
|
+
const slot = this.el.querySelector('[slot="buttonText"]');
|
|
74
|
+
if (slot && this.text === 'button') {
|
|
75
|
+
this.text = slot.innerHTML;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
getClickedElementIndex(clickedElement) {
|
|
79
|
+
let index = 0;
|
|
80
|
+
let prevSibling = clickedElement.previousElementSibling;
|
|
81
|
+
while (prevSibling) {
|
|
82
|
+
if (clickedElement.tagName === prevSibling.tagName) {
|
|
83
|
+
index += 1;
|
|
84
|
+
}
|
|
85
|
+
prevSibling = prevSibling.previousElementSibling;
|
|
86
|
+
}
|
|
87
|
+
return index;
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return (index.h(index.Host, { tabindex: this.tabindexNumber, onClick: this.clickEvent, onKeyDown: global.keydownEvent }, index.h("div", { class: "container" }, Boolean(this.href)
|
|
91
|
+
? index.h("a", { href: this.href, target: this.target, class: "anchor" })
|
|
92
|
+
: null, this.loading
|
|
93
|
+
? index.h("sas-icon", { class: "loading-icon", icon: "fas fa-spinner fa-spin" })
|
|
94
|
+
: null, Boolean(this.iconLeft)
|
|
95
|
+
? index.h("sas-icon", { class: "button-icon", icon: this.iconLeft })
|
|
96
|
+
: null, index.h("div", { class: "button-main-content" }, this.icon && this.iconPosition === 'left'
|
|
97
|
+
? index.h("sas-icon", { class: "button-icon", icon: this.icon })
|
|
98
|
+
: null, Boolean(this.text)
|
|
99
|
+
? index.h("div", { class: "button-text" }, this.text)
|
|
100
|
+
: null, this.icon && this.iconPosition === 'right'
|
|
101
|
+
? index.h("sas-icon", { class: "button-icon", icon: this.icon })
|
|
102
|
+
: null), Boolean(this.iconRight)
|
|
103
|
+
? index.h("sas-icon", { class: "button-icon", icon: this.iconRight })
|
|
104
|
+
: null, index.h("slot", null))));
|
|
105
|
+
}
|
|
106
|
+
get el() { return index.getElement(this); }
|
|
107
|
+
};
|
|
108
|
+
SasButton.style = sasButtonCss;
|
|
109
|
+
|
|
8
110
|
const sasChatBubbleCss = ":host{border-radius:3px;padding:6px 9px;background-color:var(--secondary);font-size:12px;line-height:18px;color:#FFF;position:absolute;transition:opacity 0.5s;max-width:200px;width:max-content}:host:before{content:\"\";width:0;height:0;border:5px solid transparent;position:absolute;transform:rotate(45deg)}:host([position=top]){bottom:calc(100% + 12px);left:50%;transform:translateX(-50%)}:host([position=top]):before{bottom:-4px;border-bottom-color:var(--secondary);border-right-color:var(--secondary);left:calc(50% - 5px)}:host([position=bottom]){top:calc(100% + 12px);left:50%;transform:translateX(-50%)}:host([position=bottom]):before{top:-4px;border-top-color:var(--secondary);border-left-color:var(--secondary);transform:rotate(45deg);left:calc(50% - 5px)}:host([position=left]){right:calc(100% + 12px);top:50%;transform:translateY(-50%)}:host([position=left]):before{right:-4px;border-top-color:var(--secondary);border-right-color:var(--secondary);top:calc(50% - 5px)}:host([position=right]){left:calc(100% + 12px);top:50%;transform:translateY(-50%)}:host([position=right]):before{left:-4px;border-bottom-color:var(--secondary);border-left-color:var(--secondary);top:calc(50% - 5px)}";
|
|
9
111
|
|
|
10
112
|
let SasChatBubble = class {
|
|
@@ -863,6 +965,11 @@ let SasSetupGuideTile = class {
|
|
|
863
965
|
event.stopPropagation();
|
|
864
966
|
this.proiconclicked.emit(itemName);
|
|
865
967
|
};
|
|
968
|
+
this.handleProItemClicked = (event, itemName, isPro) => {
|
|
969
|
+
event.stopPropagation();
|
|
970
|
+
if (isPro)
|
|
971
|
+
this.proiconclicked.emit(itemName);
|
|
972
|
+
};
|
|
866
973
|
}
|
|
867
974
|
normalize(input) {
|
|
868
975
|
if (Array.isArray(input))
|
|
@@ -883,7 +990,7 @@ let SasSetupGuideTile = class {
|
|
|
883
990
|
const completedItems = this.normalize(this.completed);
|
|
884
991
|
const pendingItems = this.normalize(this.pending);
|
|
885
992
|
const lockedItems = this.normalize(this.locked);
|
|
886
|
-
return (index.h(index.Host, null, index.h("div", { class: "tile", style: { width: this.width } }, index.h("div", { class: "header" }, index.h("h3", { class: "title" }, this.title)), completedItems.length > 0 && (index.h("div", { class: "completed" }, index.h("div", { class: "completed-header", onClick: this.toggleCompleted }, index.h("span", null, "Completed"), index.h("div", { class: "right" }, index.h("span", { class: "count" }, completedItems.length), index.h("sas-icon", { class: "icon-chevron", icon: this.completedopen ? 'fas fa-chevron-up' : 'fas fa-chevron-down', size: "default" }))), index.h("div", { class: `completed-list ${this.completedopen ? 'open' : ''}` }, completedItems.map(item => (index.h("div", { onClick: () => this.handleCompletedItemClicked(item.itemId), class: "completed-item completedItem" }, item.itemName, index.h("sas-icon", { id: "icon-completed", type: "default", size: "default", status: "high", icon: "fa-solid fa-circle-check" }))))))), completedItems.length > 0 && pendingItems.length > 0 && (index.h("div", { class: "dashed-divider" })), index.h("div", { class: "pending-container" }, pendingItems.length > 0 && pendingItems.map(item => (index.h("div", { onClick: () => this.handlePendingItemClicked(item.itemId), class: "pending" }, item.itemName, item.isPro && (index.h("sas-chip", { type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })), !item.isPro && (index.h("sas-icon", { class: "iconInfo", type: "default", size: "default", status: "high", icon: "far fa-circle-info", onClick: (event) => this.handleIconClick(event, item.itemId) }))))), index.h("div", { class: `pending-list ${this.expanded ? 'open' : ''} disabled` }, index.h("div", { class: "dashed-divider mtb-8" }), lockedItems.length > 0 && lockedItems.map(item => (index.h("sas-tooltip", { position: 'right' }, index.h("div", { slot: "trigger", class: "trigger-wrapper" }, index.h("div", { class: "pending-item" }, item.itemName, item.isPro && (index.h("sas-chip", { class: 'click-allowed', type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })))), index.h("div", { slot: "text" }, item.itemLockedTooltip)))))), lockedItems.length > 0 && (index.h("button", { class: "see-more", onClick: this.toggleExpand }, this.expanded ? 'See less' : 'See more', index.h("sas-icon", { class: "see-more-icon", icon: this.expanded ? 'fas fa-chevron-up' : 'fas fa-chevron-down', type: "default", size: "default" }))))));
|
|
993
|
+
return (index.h(index.Host, null, index.h("div", { class: "tile", style: { width: this.width } }, index.h("div", { class: "header" }, index.h("h3", { class: "title" }, this.title)), completedItems.length > 0 && (index.h("div", { class: "completed" }, index.h("div", { class: "completed-header", onClick: this.toggleCompleted }, index.h("span", null, "Completed"), index.h("div", { class: "right" }, index.h("span", { class: "count" }, completedItems.length), index.h("sas-icon", { class: "icon-chevron", icon: this.completedopen ? 'fas fa-chevron-up' : 'fas fa-chevron-down', size: "default" }))), index.h("div", { class: `completed-list ${this.completedopen ? 'open' : ''}` }, completedItems.map(item => (index.h("div", { onClick: () => this.handleCompletedItemClicked(item.itemId), class: "completed-item completedItem" }, item.itemName, index.h("sas-icon", { id: "icon-completed", type: "default", size: "default", status: "high", icon: "fa-solid fa-circle-check" }))))))), completedItems.length > 0 && pendingItems.length > 0 && (index.h("div", { class: "dashed-divider" })), index.h("div", { class: "pending-container" }, pendingItems.length > 0 && pendingItems.map(item => (index.h("div", { onClick: () => this.handlePendingItemClicked(item.itemId), class: "pending" }, item.itemName, item.isPro && (index.h("sas-chip", { type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })), !item.isPro && (index.h("sas-icon", { class: "iconInfo", type: "default", size: "default", status: "high", icon: "far fa-circle-info", onClick: (event) => this.handleIconClick(event, item.itemId) }))))), index.h("div", { class: `pending-list ${this.expanded ? 'open' : ''} disabled` }, index.h("div", { class: "dashed-divider mtb-8" }), lockedItems.length > 0 && lockedItems.map(item => (index.h("sas-tooltip", { position: 'right' }, index.h("div", { onClick: (event) => this.handleProItemClicked(event, item.itemName, item.isPro), slot: "trigger", class: "trigger-wrapper" }, index.h("div", { class: "pending-item" }, item.itemName, item.isPro && (index.h("sas-chip", { class: 'click-allowed', type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })))), index.h("div", { slot: "text" }, item.itemLockedTooltip)))))), lockedItems.length > 0 && (index.h("button", { class: "see-more", onClick: this.toggleExpand }, this.expanded ? 'See less' : 'See more', index.h("sas-icon", { class: "see-more-icon", icon: this.expanded ? 'fas fa-chevron-up' : 'fas fa-chevron-down', type: "default", size: "default" }))))));
|
|
887
994
|
}
|
|
888
995
|
};
|
|
889
996
|
SasSetupGuideTile.style = sasSetupGuideTileCss;
|
|
@@ -1076,6 +1183,7 @@ let SasTooltip = class {
|
|
|
1076
1183
|
};
|
|
1077
1184
|
SasTooltip.style = sasTooltipCss;
|
|
1078
1185
|
|
|
1186
|
+
exports.sas_button = SasButton;
|
|
1079
1187
|
exports.sas_chat_bubble = SasChatBubble;
|
|
1080
1188
|
exports.sas_chip = SasChip;
|
|
1081
1189
|
exports.sas_dropdown = SasDropdown;
|
|
@@ -206,7 +206,9 @@ let SasForm = class {
|
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
typeElement = formElements[i];
|
|
209
|
-
|
|
209
|
+
if (typeof (typeElement === null || typeElement === void 0 ? void 0 : typeElement.updateErrorStatus) === "function") {
|
|
210
|
+
await typeElement.updateErrorStatus();
|
|
211
|
+
}
|
|
210
212
|
if (typeElement.validity.valid) {
|
|
211
213
|
let value = typeElement.value;
|
|
212
214
|
if (value && typeElement.tagName === 'SAS-INPUT') {
|
package/dist/cjs/sas-ui.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-cd75521b.js');
|
|
4
|
-
require('./modules-
|
|
4
|
+
require('./modules-afda8d84.js');
|
|
5
5
|
require('./_commonjsHelpers-537d719a.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -17,5 +17,5 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy(JSON.parse("[[\"sas-chat-bubble_12.cjs\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect.cjs\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range.cjs\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select.cjs\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field.cjs\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card.cjs\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar.cjs\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card.cjs\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top.cjs\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper.cjs\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination.cjs\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group.cjs\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload.cjs\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert.cjs\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel.cjs\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details.cjs\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation.cjs\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group.cjs\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb.cjs\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group.cjs\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container.cjs\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group.cjs\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form.cjs\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab.cjs\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item.cjs\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field.cjs\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group.cjs\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio.cjs\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge.cjs\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider.cjs\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch.cjs\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar.cjs\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table.cjs\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image.cjs\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2.cjs\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-button.cjs\",[[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}]]],[\"sas-form-input-template_4.cjs\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
20
|
+
return index.bootstrapLazy(JSON.parse("[[\"sas-button_13.cjs\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect.cjs\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range.cjs\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select.cjs\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field.cjs\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card.cjs\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar.cjs\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card.cjs\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top.cjs\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper.cjs\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination.cjs\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group.cjs\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload.cjs\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert.cjs\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel.cjs\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details.cjs\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation.cjs\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group.cjs\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb.cjs\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group.cjs\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container.cjs\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group.cjs\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form.cjs\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab.cjs\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item.cjs\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field.cjs\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group.cjs\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio.cjs\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge.cjs\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider.cjs\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch.cjs\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar.cjs\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table.cjs\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image.cjs\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2.cjs\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-form-input-template_4.cjs\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
21
21
|
});
|
|
@@ -13,6 +13,8 @@ function init(options) {
|
|
|
13
13
|
width: options.width ?? '600px',
|
|
14
14
|
showConfirmButton: false,
|
|
15
15
|
padding: "30px",
|
|
16
|
+
allowOutsideClick: options.allowOutsideClick ?? true,
|
|
17
|
+
allowEscapeKey: options.allowEscapeKey ?? true,
|
|
16
18
|
customClass: {
|
|
17
19
|
popup: 'sas-dialog-swal-custom-popup',
|
|
18
20
|
header: 'sas-dialog-swal-custom-header',
|
|
@@ -198,7 +198,9 @@ export class SasForm {
|
|
|
198
198
|
}
|
|
199
199
|
else {
|
|
200
200
|
typeElement = formElements[i];
|
|
201
|
-
|
|
201
|
+
if (typeof (typeElement === null || typeElement === void 0 ? void 0 : typeElement.updateErrorStatus) === "function") {
|
|
202
|
+
await typeElement.updateErrorStatus();
|
|
203
|
+
}
|
|
202
204
|
if (typeElement.validity.valid) {
|
|
203
205
|
let value = typeElement.value;
|
|
204
206
|
if (value && typeElement.tagName === 'SAS-INPUT') {
|
|
@@ -42,6 +42,11 @@ export class SasSetupGuideTile {
|
|
|
42
42
|
event.stopPropagation();
|
|
43
43
|
this.proiconclicked.emit(itemName);
|
|
44
44
|
};
|
|
45
|
+
this.handleProItemClicked = (event, itemName, isPro) => {
|
|
46
|
+
event.stopPropagation();
|
|
47
|
+
if (isPro)
|
|
48
|
+
this.proiconclicked.emit(itemName);
|
|
49
|
+
};
|
|
45
50
|
}
|
|
46
51
|
normalize(input) {
|
|
47
52
|
if (Array.isArray(input))
|
|
@@ -84,7 +89,7 @@ export class SasSetupGuideTile {
|
|
|
84
89
|
h("div", { class: `pending-list ${this.expanded ? 'open' : ''} disabled` },
|
|
85
90
|
h("div", { class: "dashed-divider mtb-8" }),
|
|
86
91
|
lockedItems.length > 0 && lockedItems.map(item => (h("sas-tooltip", { position: 'right' },
|
|
87
|
-
h("div", { slot: "trigger", class: "trigger-wrapper" },
|
|
92
|
+
h("div", { onClick: (event) => this.handleProItemClicked(event, item.itemName, item.isPro), slot: "trigger", class: "trigger-wrapper" },
|
|
88
93
|
h("div", { class: "pending-item" },
|
|
89
94
|
item.itemName,
|
|
90
95
|
item.isPro && (h("sas-chip", { class: 'click-allowed', type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })))),
|
|
@@ -4585,6 +4585,8 @@ function init$1(options) {
|
|
|
4585
4585
|
width: options.width ?? '600px',
|
|
4586
4586
|
showConfirmButton: false,
|
|
4587
4587
|
padding: "30px",
|
|
4588
|
+
allowOutsideClick: options.allowOutsideClick ?? true,
|
|
4589
|
+
allowEscapeKey: options.allowEscapeKey ?? true,
|
|
4588
4590
|
customClass: {
|
|
4589
4591
|
popup: 'sas-dialog-swal-custom-popup',
|
|
4590
4592
|
header: 'sas-dialog-swal-custom-header',
|
|
@@ -7266,7 +7268,9 @@ let SasForm$1 = class extends H {
|
|
|
7266
7268
|
}
|
|
7267
7269
|
else {
|
|
7268
7270
|
typeElement = formElements[i];
|
|
7269
|
-
|
|
7271
|
+
if (typeof (typeElement === null || typeElement === void 0 ? void 0 : typeElement.updateErrorStatus) === "function") {
|
|
7272
|
+
await typeElement.updateErrorStatus();
|
|
7273
|
+
}
|
|
7270
7274
|
if (typeElement.validity.valid) {
|
|
7271
7275
|
let value = typeElement.value;
|
|
7272
7276
|
if (value && typeElement.tagName === 'SAS-INPUT') {
|
|
@@ -13547,6 +13551,11 @@ let SasSetupGuideTile$1 = class extends H {
|
|
|
13547
13551
|
event.stopPropagation();
|
|
13548
13552
|
this.proiconclicked.emit(itemName);
|
|
13549
13553
|
};
|
|
13554
|
+
this.handleProItemClicked = (event, itemName, isPro) => {
|
|
13555
|
+
event.stopPropagation();
|
|
13556
|
+
if (isPro)
|
|
13557
|
+
this.proiconclicked.emit(itemName);
|
|
13558
|
+
};
|
|
13550
13559
|
}
|
|
13551
13560
|
normalize(input) {
|
|
13552
13561
|
if (Array.isArray(input))
|
|
@@ -13567,7 +13576,7 @@ let SasSetupGuideTile$1 = class extends H {
|
|
|
13567
13576
|
const completedItems = this.normalize(this.completed);
|
|
13568
13577
|
const pendingItems = this.normalize(this.pending);
|
|
13569
13578
|
const lockedItems = this.normalize(this.locked);
|
|
13570
|
-
return (h(Host, null, h("div", { class: "tile", style: { width: this.width } }, h("div", { class: "header" }, h("h3", { class: "title" }, this.title)), completedItems.length > 0 && (h("div", { class: "completed" }, h("div", { class: "completed-header", onClick: this.toggleCompleted }, h("span", null, "Completed"), h("div", { class: "right" }, h("span", { class: "count" }, completedItems.length), h("sas-icon", { class: "icon-chevron", icon: this.completedopen ? 'fas fa-chevron-up' : 'fas fa-chevron-down', size: "default" }))), h("div", { class: `completed-list ${this.completedopen ? 'open' : ''}` }, completedItems.map(item => (h("div", { onClick: () => this.handleCompletedItemClicked(item.itemId), class: "completed-item completedItem" }, item.itemName, h("sas-icon", { id: "icon-completed", type: "default", size: "default", status: "high", icon: "fa-solid fa-circle-check" }))))))), completedItems.length > 0 && pendingItems.length > 0 && (h("div", { class: "dashed-divider" })), h("div", { class: "pending-container" }, pendingItems.length > 0 && pendingItems.map(item => (h("div", { onClick: () => this.handlePendingItemClicked(item.itemId), class: "pending" }, item.itemName, item.isPro && (h("sas-chip", { type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })), !item.isPro && (h("sas-icon", { class: "iconInfo", type: "default", size: "default", status: "high", icon: "far fa-circle-info", onClick: (event) => this.handleIconClick(event, item.itemId) }))))), h("div", { class: `pending-list ${this.expanded ? 'open' : ''} disabled` }, h("div", { class: "dashed-divider mtb-8" }), lockedItems.length > 0 && lockedItems.map(item => (h("sas-tooltip", { position: 'right' }, h("div", { slot: "trigger", class: "trigger-wrapper" }, h("div", { class: "pending-item" }, item.itemName, item.isPro && (h("sas-chip", { class: 'click-allowed', type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })))), h("div", { slot: "text" }, item.itemLockedTooltip)))))), lockedItems.length > 0 && (h("button", { class: "see-more", onClick: this.toggleExpand }, this.expanded ? 'See less' : 'See more', h("sas-icon", { class: "see-more-icon", icon: this.expanded ? 'fas fa-chevron-up' : 'fas fa-chevron-down', type: "default", size: "default" }))))));
|
|
13579
|
+
return (h(Host, null, h("div", { class: "tile", style: { width: this.width } }, h("div", { class: "header" }, h("h3", { class: "title" }, this.title)), completedItems.length > 0 && (h("div", { class: "completed" }, h("div", { class: "completed-header", onClick: this.toggleCompleted }, h("span", null, "Completed"), h("div", { class: "right" }, h("span", { class: "count" }, completedItems.length), h("sas-icon", { class: "icon-chevron", icon: this.completedopen ? 'fas fa-chevron-up' : 'fas fa-chevron-down', size: "default" }))), h("div", { class: `completed-list ${this.completedopen ? 'open' : ''}` }, completedItems.map(item => (h("div", { onClick: () => this.handleCompletedItemClicked(item.itemId), class: "completed-item completedItem" }, item.itemName, h("sas-icon", { id: "icon-completed", type: "default", size: "default", status: "high", icon: "fa-solid fa-circle-check" }))))))), completedItems.length > 0 && pendingItems.length > 0 && (h("div", { class: "dashed-divider" })), h("div", { class: "pending-container" }, pendingItems.length > 0 && pendingItems.map(item => (h("div", { onClick: () => this.handlePendingItemClicked(item.itemId), class: "pending" }, item.itemName, item.isPro && (h("sas-chip", { type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })), !item.isPro && (h("sas-icon", { class: "iconInfo", type: "default", size: "default", status: "high", icon: "far fa-circle-info", onClick: (event) => this.handleIconClick(event, item.itemId) }))))), h("div", { class: `pending-list ${this.expanded ? 'open' : ''} disabled` }, h("div", { class: "dashed-divider mtb-8" }), lockedItems.length > 0 && lockedItems.map(item => (h("sas-tooltip", { position: 'right' }, h("div", { onClick: (event) => this.handleProItemClicked(event, item.itemName, item.isPro), slot: "trigger", class: "trigger-wrapper" }, h("div", { class: "pending-item" }, item.itemName, item.isPro && (h("sas-chip", { class: 'click-allowed', type: "small", status: "open", text: "PRO", onClick: (event) => this.handleProIconClick(event, item.itemName) })))), h("div", { slot: "text" }, item.itemLockedTooltip)))))), lockedItems.length > 0 && (h("button", { class: "see-more", onClick: this.toggleExpand }, this.expanded ? 'See less' : 'See more', h("sas-icon", { class: "see-more-icon", icon: this.expanded ? 'fas fa-chevron-up' : 'fas fa-chevron-down', type: "default", size: "default" }))))));
|
|
13571
13580
|
}
|
|
13572
13581
|
static get style() { return sasSetupGuideTileCss; }
|
|
13573
13582
|
};
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-82af0817.js';
|
|
2
|
-
import './modules-
|
|
2
|
+
import './modules-bda8500a.js';
|
|
3
3
|
import './_commonjsHelpers-9943807e.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -12,7 +12,7 @@ const patchEsm = () => {
|
|
|
12
12
|
const defineCustomElements = (win, options) => {
|
|
13
13
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
14
14
|
return patchEsm().then(() => {
|
|
15
|
-
return bootstrapLazy(JSON.parse("[[\"sas-chat-bubble_12\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-button\",[[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}]]],[\"sas-form-input-template_4\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
15
|
+
return bootstrapLazy(JSON.parse("[[\"sas-button_13\",[[1,\"sas-setup-guide-tile\",{\"title\":[1],\"description\":[1],\"alertTitle\":[1,\"alert-title\"],\"alertmessage\":[1],\"icon\":[1],\"image\":[1],\"width\":[513],\"status\":[4],\"completed\":[1],\"pending\":[1],\"locked\":[1],\"completedopen\":[32],\"expanded\":[32]}],[1,\"sas-setup-guide-progress-button\",{\"buttonTitle\":[1,\"button-title\"],\"progress\":[514],\"backgroundColor\":[1,\"background-color\"],\"icon\":[1]}],[1,\"sas-panel\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"buttonText\":[1,\"button-text\"],\"width\":[513],\"href\":[1],\"newTab\":[4,\"new-tab\"]}],[1,\"sas-tooltip\",{\"trigger\":[513],\"text\":[513],\"position\":[1537],\"disabled\":[1540]}],[1,\"sas-progress-bar\",{\"progress\":[514],\"progressGates\":[16]}],[1,\"sas-list\",{\"toggle\":[516],\"compact\":[516],\"border\":[516],\"subtextPosition\":[513,\"subtext-position\"],\"value\":[1544],\"rawData\":[1032,\"raw-data\"],\"text\":[1537],\"defaultValue\":[520,\"default-value\"],\"options\":[16],\"update\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-chip\",{\"type\":[513],\"status\":[513],\"outlined\":[516],\"close\":[516],\"inside\":[516],\"text\":[513],\"uppercase\":[516],\"bold\":[516]}],[1,\"sas-chat-bubble\",{\"position\":[513]}],[1,\"sas-sublist\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"iconRight\":[513,\"icon-right\"],\"toggle\":[516],\"compact\":[516],\"hideSub\":[1540,\"hide-sub\"],\"selected\":[1540]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-list-item\",{\"icon\":[513],\"value\":[8],\"text\":[513],\"subtext\":[513],\"subtextPosition\":[513,\"subtext-position\"],\"iconRight\":[513,\"icon-right\"],\"selected\":[516],\"alwaysShown\":[516,\"always-shown\"],\"disabled\":[516],\"index\":[514],\"href\":[513],\"target\":[513]}],[1,\"sas-dropdown\",{\"block\":[516],\"clickClose\":[516,\"click-close\"],\"positionV\":[1537,\"position-v\"],\"positionH\":[1537,\"position-h\"],\"close\":[64],\"open\":[64]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-button\",{\"type\":[513],\"size\":[513],\"text\":[513],\"iconLeft\":[513,\"icon-left\"],\"icon\":[513],\"iconPosition\":[513,\"icon-position\"],\"iconRight\":[513,\"icon-right\"],\"block\":[516],\"loading\":[516],\"disabled\":[516],\"href\":[513],\"target\":[513],\"tabindexNumber\":[32]}],[1,\"sas-icon\",{\"type\":[513],\"size\":[513],\"status\":[513],\"icon\":[513],\"index\":[2]}]]],[\"sas-multiselect\",[[1,\"sas-multiselect\",{\"type\":[513],\"search\":[516],\"filterText\":[513,\"filter-text\"],\"noMatchAction\":[513,\"no-match-action\"],\"noMatchTip\":[513,\"no-match-tip\"],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"disabled\":[516],\"clear\":[516],\"placeholder\":[513],\"options\":[1040],\"name\":[513],\"values\":[1040],\"rawData\":[1040],\"min\":[514],\"max\":[514],\"maxChip\":[514,\"max-chip\"],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"buttonFilterText\":[1,\"button-filter-text\"],\"value\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"checkboxgroupupdate\",\"checkboxUpdateHandler\"],[0,\"chipUpdate\",\"chipUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-date-range\",[[1,\"sas-date-range\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"name\":[513],\"min\":[513],\"max\":[513],\"from\":[1537],\"to\":[1537],\"required\":[516],\"disabled\":[516],\"position\":[513],\"validity\":[1040],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-select\",[[1,\"sas-select\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"type\":[513],\"noMatchTip\":[513,\"no-match-tip\"],\"placeholder\":[513],\"disabled\":[516],\"clear\":[516],\"options\":[1040],\"alwaysShownOptions\":[1040],\"defaultValue\":[520,\"default-value\"],\"name\":[513],\"value\":[1032],\"rawData\":[1032,\"raw-data\"],\"text\":[1032],\"subtextPosition\":[513,\"subtext-position\"],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"listItemClicked\",\"listItemClickedHandler\"],[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"],[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputClear\",\"inputClearHandler\"],[0,\"inputFocus\",\"inputFocusHandler\"],[0,\"inputBlur\",\"inputBlurHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"]]]]],[\"sas-time-field\",[[1,\"sas-time-field\",{\"label\":[513],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"],[0,\"inputContainerClick\",\"inputContainerClickHandler\"],[0,\"listItemClicked\",\"listItemClickedHandler\"]]]]],[\"sas-user-card\",[[1,\"sas-user-card\",{\"block\":[516],\"name\":[513],\"position\":[513],\"status\":[1537],\"badge\":[516],\"attachment\":[516],\"showFireWardenIcon\":[516,\"show-fire-warden-icon\"],\"showFirstAidIcon\":[516,\"show-first-aid-icon\"],\"showToggleSwitch\":[516,\"show-toggle-switch\"],\"showMenu\":[516,\"show-menu\"],\"src\":[513]},[[0,\"switchupdate\",\"switchUpdateHandler\"]]]]],[\"sas-menu-bar\",[[1,\"sas-menu-bar\",{\"sticky\":[516]},[[0,\"selectUpdateEventUsedInternal\",\"selectUpdateEventUsedInternalHandler\"],[0,\"multiselectUpdateEventUsedInternal\",\"multiselectUpdateEventUsedInternalHandler\"],[0,\"dateFieldUpdateEventUsedInternal\",\"dateFieldUpdateEventUsedInternalHandler\"],[0,\"inputupdate\",\"inputUpdateEventUsedInternalHandler\"],[0,\"inputContainerClick\",\"inputinputContainerClickEventInternalHandler\"]]]]],[\"sas-card\",[[1,\"sas-card\",{\"block\":[516],\"src\":[513],\"lazyImage\":[516,\"lazy-image\"],\"scale\":[513],\"repair\":[516],\"attachment\":[516],\"disabled\":[516],\"cardTitle\":[513,\"card-title\"],\"showMenu\":[516,\"show-menu\"]}]]],[\"sas-navigation-top\",[[1,\"sas-navigation-top\",{\"name\":[513],\"user\":[513],\"src\":[513]}]]],[\"sas-stepper\",[[1,\"sas-stepper\",{\"total\":[514],\"current\":[1538],\"names\":[16],\"direction\":[513],\"backgroundTheme\":[513,\"background-theme\"]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-pagination\",[[1,\"sas-pagination\",{\"totalPage\":[514,\"total-page\"],\"totalIndex\":[514,\"total-index\"],\"currentPage\":[1538,\"current-page\"]}]]],[\"sas-radio-group\",[[1,\"sas-radio-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"value\":[1032],\"defaultValue\":[520,\"default-value\"],\"text\":[1537],\"rawData\":[1032,\"raw-data\"],\"options\":[16],\"update\":[64]},[[0,\"radioupdate\",\"radioUpdateHandler\"]]]]],[\"sas-upload\",[[1,\"sas-upload\",{\"compact\":[516],\"inputOutside\":[516,\"input-outside\"],\"fullImage\":[516,\"full-image\"],\"type\":[513],\"label\":[513],\"name\":[513],\"max\":[514],\"size\":[514],\"accept\":[513],\"files\":[1040],\"removedFiles\":[1040],\"method\":[513],\"url\":[513],\"required\":[516],\"disabled\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"submit\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"getFormData\":[64],\"checkFileUpdate\":[64]}]]],[\"sas-alert\",[[1,\"sas-alert\",{\"type\":[513],\"show\":[1540],\"close\":[516],\"alertTitle\":[1,\"alert-title\"],\"content\":[1]}]]],[\"sas-carousel\",[[1,\"sas-carousel\",{\"index\":[1538],\"slides\":[16]}]]],[\"sas-details\",[[1,\"sas-details\",{\"open\":[516],\"icon\":[513],\"autoGap\":[516,\"auto-gap\"],\"checkIsOpen\":[64]}]]],[\"sas-navigation\",[[1,\"sas-navigation\",{\"name\":[513]}]]],[\"sas-avatar-group\",[[1,\"sas-avatar-group\"]]],[\"sas-breadcrumb\",[[1,\"sas-breadcrumb\",{\"items\":[16],\"showAll\":[32]}]]],[\"sas-button-group\",[[1,\"sas-button-group\",{\"values\":[1040],\"multiple\":[516]},[[0,\"buttonclicked\",\"buttonclickedHandler\"]]]]],[\"sas-container\",[[1,\"sas-container\",{\"gridTemplateColumns\":[513,\"grid-template-columns\"],\"gridTemplateRows\":[513,\"grid-template-rows\"],\"justifyItems\":[513,\"justify-items\"],\"alignItems\":[513,\"align-items\"]}]]],[\"sas-details-group\",[[1,\"sas-details-group\",{\"autoClose\":[516,\"auto-close\"]},[[0,\"detailsupdate\",\"detailsUpdateHandler\"]]]]],[\"sas-form\",[[1,\"sas-form\",{\"method\":[513],\"url\":[513],\"reset\":[64],\"validate\":[64],\"submit\":[64]}]]],[\"sas-tab\",[[1,\"sas-tab\",null,[[0,\"tabItemClicked\",\"tabItemClickedHandler\"]]]]],[\"sas-tab-item\",[[1,\"sas-tab-item\",{\"value\":[513],\"text\":[513]}]]],[\"sas-date-field\",[[1,\"sas-date-field\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"name\":[513],\"value\":[1537],\"max\":[513],\"min\":[513],\"disabled\":[516],\"clear\":[516],\"icon\":[513],\"position\":[513],\"positionH\":[513,\"position-h\"],\"validity\":[1040],\"message\":[1537],\"valueMissingMessage\":[513,\"value-missing-message\"],\"rangeOverflowMessage\":[513,\"range-overflow-message\"],\"rangeUnderflowMessage\":[513,\"range-underflow-message\"],\"localDate\":[32],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]},[[0,\"inputUpdate\",\"inputUpdateHandler\"]]]]],[\"sas-checkbox-group\",[[1,\"sas-checkbox-group\",{\"name\":[513],\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"required\":[516],\"values\":[1040],\"rawData\":[1040],\"max\":[514],\"options\":[1040],\"selectAll\":[4,\"select-all\"],\"selectAllText\":[1,\"select-all-text\"],\"columns\":[514],\"update\":[64]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-radio\",[[1,\"sas-radio\",{\"name\":[513],\"value\":[8],\"text\":[513],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"tabindexNumber\":[32],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-badge\",[[1,\"sas-badge\",{\"type\":[513],\"status\":[513],\"number\":[514],\"inline\":[516]}]]],[\"sas-divider\",[[1,\"sas-divider\",{\"type\":[1]}]]],[\"sas-switch\",[[1,\"sas-switch\",{\"name\":[513],\"checked\":[1540],\"required\":[516],\"error\":[1540],\"validity\":[1040],\"message\":[1537],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}]]],[\"sas-avatar\",[[1,\"sas-avatar\",{\"type\":[513],\"name\":[513],\"src\":[513],\"disabled\":[516],\"group\":[516]}]]],[\"sas-table\",[[1,\"sas-table\",{\"headers\":[16],\"items\":[16],\"sortedItems\":[32]}]]],[\"sas-image\",[[1,\"sas-image\",{\"imageObject\":[8,\"image-object\"],\"src\":[513],\"lazy\":[516]}]]],[\"sas-checkbox_2\",[[1,\"sas-checkbox\",{\"name\":[513],\"value\":[8],\"text\":[513],\"index\":[514],\"textPosition\":[513,\"text-position\"],\"align\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[513],\"error\":[1540],\"required\":[516],\"validity\":[1040],\"message\":[1537],\"exclusive\":[516],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64]}],[1,\"sas-checkbox-subgroup\",{\"value\":[8],\"text\":[513],\"checked\":[1540],\"disabled\":[516],\"icon\":[1025],\"status\":[1025]},[[0,\"checkboxUpdate\",\"checkboxUpdateHandler\"]]]]],[\"sas-form-input-template_4\",[[1,\"sas-form-input-template\",{\"label\":[513],\"iconLabel\":[513,\"icon-label\"],\"outside\":[516],\"required\":[516],\"placeholder\":[1],\"type\":[1],\"value\":[1],\"max\":[513],\"min\":[513],\"iconRight\":[1,\"icon-right\"],\"readonly\":[4],\"error\":[516],\"disabled\":[516],\"clear\":[516],\"position\":[513],\"positionH\":[513,\"position-h\"],\"show\":[1540],\"clickClose\":[516,\"click-close\"],\"minimumPixelsAboveComponentRequired\":[514,\"minimum-pixels-above-component-required\"],\"minimumPixelsRightOfComponentRequired\":[514,\"minimum-pixels-right-of-component-required\"]},[[0,\"listItemClickEventUsedInternal\",\"listItemClickEventUsedInternalHandler\"]]],[1,\"sas-input\",{\"type\":[513],\"step\":[513],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"label\":[513],\"outside\":[516],\"required\":[516],\"maxlength\":[514],\"minlength\":[514],\"max\":[513],\"min\":[513],\"iconLabel\":[513,\"icon-label\"],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"clear\":[516],\"readonly\":[516],\"disabled\":[516],\"validity\":[1032],\"error\":[1540],\"message\":[1537],\"country\":[1537],\"placeholderNumberType\":[513,\"placeholder-number-type\"],\"isValidNumber\":[1540,\"is-valid-number\"],\"update\":[64],\"validate\":[64],\"updateErrorStatus\":[64],\"resetErrorStatus\":[64],\"setCustomValidity\":[64]},[[0,\"inputTelUpdate\",\"inputTelUpdateHandler\"],[0,\"inputTextareaUpdate\",\"inputTextareaUpdateHandler\"]]],[1,\"sas-input-tel\",{\"getValidity\":[64],\"setCountry\":[64],\"setPlaceholder\":[64],\"update\":[64]}],[1,\"sas-input-textarea\",{\"placeholder\":[513],\"maxlength\":[514],\"minlength\":[514],\"value\":[513]}]]]]"), options);
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -3428,6 +3428,8 @@ function init$1(options) {
|
|
|
3428
3428
|
width: options.width ?? '600px',
|
|
3429
3429
|
showConfirmButton: false,
|
|
3430
3430
|
padding: "30px",
|
|
3431
|
+
allowOutsideClick: options.allowOutsideClick ?? true,
|
|
3432
|
+
allowEscapeKey: options.allowEscapeKey ?? true,
|
|
3431
3433
|
customClass: {
|
|
3432
3434
|
popup: 'sas-dialog-swal-custom-popup',
|
|
3433
3435
|
header: 'sas-dialog-swal-custom-header',
|