@sellmate/design-system 0.0.51 → 0.0.53
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/design-system.cjs.js +5 -3
- package/dist/cjs/design-system.cjs.js.map +1 -1
- package/dist/cjs/{index-Bxead0A0.js → index-B7tkxTye.js} +11 -5
- package/dist/cjs/index-B7tkxTye.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +4 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +4 -4
- package/dist/cjs/{sd-button_15.cjs.entry.js → sd-button_21.cjs.entry.js} +649 -55
- package/dist/cjs/sd-card.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +5 -5
- package/dist/cjs/sd-modal-card.cjs.entry.js +3 -3
- package/dist/cjs/sd-popover.cjs.entry.js +6 -6
- package/dist/cjs/sd-progress.cjs.entry.js +5 -5
- package/dist/cjs/sd-radio-button-group.cjs.entry.js +71 -0
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +7 -7
- package/dist/cjs/sd-select-option-group.cjs.entry.js +6 -6
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tbody_3.cjs.entry.js +10 -10
- package/dist/cjs/sd-td.cjs.entry.js +5 -5
- package/dist/cjs/{tooltipArrow-C7cIAuTo.js → tooltipArrow-8I9A3AOE.js} +3 -3
- package/dist/cjs/{tooltipArrow-C7cIAuTo.js.map → tooltipArrow-8I9A3AOE.js.map} +1 -1
- package/dist/collection/collection-manifest.json +7 -2
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +95 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +299 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.js.map +1 -0
- package/dist/collection/components/sd-guide/sd-guide.js +3 -3
- package/dist/collection/components/sd-icon/sd-icon.css +1 -4
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.css +1 -4
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.css +71 -0
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js +214 -0
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js.map +1 -0
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select.js +28 -4
- package/dist/collection/components/sd-select/sd-select.js.map +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +26 -2
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js.map +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +4 -4
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js.map +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-table.js +3 -3
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
- package/dist/collection/components/sd-table/sd-td/sd-td.js +2 -2
- package/dist/collection/components/sd-table/sd-th/sd-th.js +1 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +1 -1
- package/dist/collection/components/sd-table-backup/sd-table-backup.js +4 -4
- package/dist/collection/components/sd-tabs/sd-tabs.css +83 -0
- package/dist/collection/components/sd-tabs/sd-tabs.js +180 -0
- package/dist/collection/components/sd-tabs/sd-tabs.js.map +1 -0
- package/dist/collection/components/sd-tag/sd-tag.css +8 -0
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-toast-message/sd-toast-message.css +66 -0
- package/dist/collection/components/sd-toast-message/sd-toast-message.js +248 -0
- package/dist/collection/components/sd-toast-message/sd-toast-message.js.map +1 -0
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.css +46 -0
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +136 -0
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js.map +1 -0
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-71Aop19u.js +109 -0
- package/dist/{design-system/sd-select-option-group.entry.esm.js.map → components/p-71Aop19u.js.map} +1 -1
- package/dist/components/{p-DiehM5Y0.js → p-B05GJor3.js} +9 -9
- package/dist/components/p-B05GJor3.js.map +1 -0
- package/dist/components/{p-9kN1E6Ra.js → p-B13lOU0D.js} +27 -23
- package/dist/components/p-B13lOU0D.js.map +1 -0
- package/dist/components/{p-BpNH68jy.js → p-B3H_uLbl.js} +3 -3
- package/dist/components/{p-BpNH68jy.js.map → p-B3H_uLbl.js.map} +1 -1
- package/dist/components/{p-1SxxSEqq.js → p-B4wWf5r8.js} +11 -11
- package/dist/components/p-B4wWf5r8.js.map +1 -0
- package/dist/components/{p-gnOKrd57.js → p-BDkKpeVz.js} +3 -3
- package/dist/components/{p-gnOKrd57.js.map → p-BDkKpeVz.js.map} +1 -1
- package/dist/components/{p-S7M--xNH.js → p-Be8w5kOo.js} +18 -18
- package/dist/components/p-Be8w5kOo.js.map +1 -0
- package/dist/components/{p-DY6t0qQj.js → p-BwSVYr5L.js} +7 -7
- package/dist/components/p-BwSVYr5L.js.map +1 -0
- package/dist/components/{p-CkKxyn_K.js → p-C7kMNSz9.js} +9 -9
- package/dist/components/p-C7kMNSz9.js.map +1 -0
- package/dist/components/p-CLMeZVRV.js +34 -0
- package/dist/components/p-CLMeZVRV.js.map +1 -0
- package/dist/components/p-CLNPwi8e.js +81 -0
- package/dist/components/p-CLNPwi8e.js.map +1 -0
- package/dist/components/{p-TFWJruz2.js → p-CQBrru3e.js} +11 -5
- package/dist/components/p-CQBrru3e.js.map +1 -0
- package/dist/components/{p-BsyfatBe.js → p-CV5tKC24.js} +8 -8
- package/dist/components/p-CV5tKC24.js.map +1 -0
- package/dist/components/p-CVtij2QI.js +34 -0
- package/dist/components/p-CVtij2QI.js.map +1 -0
- package/dist/components/{p-Dgxczhd0.js → p-CYadUxId.js} +6 -6
- package/dist/components/{p-Dgxczhd0.js.map → p-CYadUxId.js.map} +1 -1
- package/dist/components/{p-BSUHSOXX.js → p-Cf-LyLYk.js} +8 -8
- package/dist/components/p-Cf-LyLYk.js.map +1 -0
- package/dist/components/{p-C171iavd.js → p-ChQIkICO.js} +8 -8
- package/dist/components/p-ChQIkICO.js.map +1 -0
- package/dist/components/{p-CJ0qTKU7.js → p-DP33nj_I.js} +6 -6
- package/dist/components/{p-CJ0qTKU7.js.map → p-DP33nj_I.js.map} +1 -1
- package/dist/components/{p-C6tAa8Q4.js → p-DY9yCaP9.js} +11 -11
- package/dist/components/p-DY9yCaP9.js.map +1 -0
- package/dist/components/{p-DyGUXuvD.js → p-j-ZEdgz4.js} +12 -12
- package/dist/components/p-j-ZEdgz4.js.map +1 -0
- package/dist/components/sd-badge.js +6 -6
- package/dist/components/sd-badge.js.map +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +6 -6
- package/dist/components/sd-card.js.map +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker.js +14 -14
- package/dist/components/sd-date-picker.js.map +1 -1
- package/dist/components/sd-date-range-picker.js +15 -15
- package/dist/components/sd-date-range-picker.js.map +1 -1
- package/dist/components/sd-file-picker.d.ts +11 -0
- package/dist/components/sd-file-picker.js +159 -0
- package/dist/components/sd-file-picker.js.map +1 -0
- package/dist/components/sd-guide.js +14 -14
- package/dist/components/sd-guide.js.map +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-card.js +9 -9
- package/dist/components/sd-modal-card.js.map +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +14 -14
- package/dist/components/sd-popover.js.map +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +7 -7
- package/dist/components/sd-progress.js.map +1 -1
- package/dist/components/sd-radio-button-group.d.ts +11 -0
- package/dist/components/sd-radio-button-group.js +99 -0
- package/dist/components/sd-radio-button-group.js.map +1 -0
- package/dist/components/sd-radio-group.js +6 -6
- package/dist/components/sd-radio-group.js.map +1 -1
- package/dist/components/sd-select-multiple-group.js +20 -20
- package/dist/components/sd-select-multiple-group.js.map +1 -1
- package/dist/components/sd-select-multiple.js +23 -19
- package/dist/components/sd-select-multiple.js.map +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table-backup.js +31 -31
- package/dist/components/sd-table-backup.js.map +1 -1
- package/dist/components/sd-table.js +34 -34
- package/dist/components/sd-table.js.map +1 -1
- package/dist/components/sd-tabs.d.ts +11 -0
- package/dist/components/sd-tabs.js +101 -0
- package/dist/components/sd-tabs.js.map +1 -0
- package/dist/components/sd-tag.js +1 -76
- package/dist/components/sd-tag.js.map +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +7 -7
- package/dist/components/sd-td.js.map +1 -1
- package/dist/components/sd-th.js +1 -1
- package/dist/components/sd-toast-message.d.ts +11 -0
- package/dist/components/sd-toast-message.js +101 -0
- package/dist/components/sd-toast-message.js.map +1 -0
- package/dist/components/sd-toggle-button.d.ts +11 -0
- package/dist/components/sd-toggle-button.js +74 -0
- package/dist/components/sd-toggle-button.js.map +1 -0
- package/dist/components/sd-toggle.js +6 -6
- package/dist/components/sd-toggle.js.map +1 -1
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/design-system.esm.js.map +1 -1
- package/dist/design-system/p-0cbdb34f.entry.js +2 -0
- package/dist/design-system/p-0cbdb34f.entry.js.map +1 -0
- package/dist/design-system/p-1e7a06ef.entry.js +2 -0
- package/dist/design-system/p-1e7a06ef.entry.js.map +1 -0
- package/dist/design-system/p-1fbc8e14.entry.js +2 -0
- package/dist/design-system/p-1fbc8e14.entry.js.map +1 -0
- package/dist/design-system/p-6b3c33c3.entry.js +2 -0
- package/dist/design-system/p-6b3c33c3.entry.js.map +1 -0
- package/dist/design-system/p-6ce950da.entry.js +2 -0
- package/dist/design-system/p-6ce950da.entry.js.map +1 -0
- package/dist/design-system/p-761882f5.entry.js +2 -0
- package/dist/design-system/p-761882f5.entry.js.map +1 -0
- package/dist/design-system/p-790ae9ce.entry.js +2 -0
- package/dist/design-system/p-790ae9ce.entry.js.map +1 -0
- package/dist/design-system/{p-ClyGLKUd.js → p-7X2nzJWz.js} +2 -2
- package/dist/design-system/p-7X2nzJWz.js.map +1 -0
- package/dist/design-system/{p-DXZjHQmQ.js → p-CdbtuKYR.js} +2 -2
- package/dist/design-system/{p-DXZjHQmQ.js.map → p-CdbtuKYR.js.map} +1 -1
- package/dist/design-system/p-a8e8fc17.entry.js +2 -0
- package/dist/design-system/p-a8e8fc17.entry.js.map +1 -0
- package/dist/design-system/p-be9c40a3.entry.js +2 -0
- package/dist/design-system/p-be9c40a3.entry.js.map +1 -0
- package/dist/design-system/p-d02b3369.entry.js +2 -0
- package/dist/design-system/p-d02b3369.entry.js.map +1 -0
- package/dist/design-system/p-db603dcb.entry.js +2 -0
- package/dist/design-system/p-db603dcb.entry.js.map +1 -0
- package/dist/design-system/p-ddb5a2f4.entry.js +2 -0
- package/dist/design-system/p-ddb5a2f4.entry.js.map +1 -0
- package/dist/design-system/p-e31182ad.entry.js +2 -0
- package/dist/design-system/p-e31182ad.entry.js.map +1 -0
- package/dist/design-system/p-e492d625.entry.js +2 -0
- package/dist/design-system/p-e492d625.entry.js.map +1 -0
- package/dist/design-system/p-fe8721b5.entry.js +2 -0
- package/dist/design-system/p-fe8721b5.entry.js.map +1 -0
- package/dist/esm/design-system.js +6 -4
- package/dist/esm/design-system.js.map +1 -1
- package/dist/esm/{index-ClyGLKUd.js → index-7X2nzJWz.js} +11 -5
- package/dist/esm/index-7X2nzJWz.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +5 -3
- package/dist/esm/sd-badge.entry.js +4 -4
- package/dist/esm/sd-badge.entry.js.map +1 -1
- package/dist/esm/{sd-button_15.entry.js → sd-button_21.entry.js} +644 -56
- package/dist/esm/sd-card.entry.js +4 -4
- package/dist/esm/sd-card.entry.js.map +1 -1
- package/dist/esm/sd-date-box.entry.js +3 -3
- package/dist/esm/sd-date-box.entry.js.map +1 -1
- package/dist/esm/sd-date-picker.entry.js +4 -4
- package/dist/esm/sd-date-picker.entry.js.map +1 -1
- package/dist/esm/sd-date-range-picker.entry.js +5 -5
- package/dist/esm/sd-date-range-picker.entry.js.map +1 -1
- package/dist/esm/sd-modal-card.entry.js +3 -3
- package/dist/esm/sd-modal-card.entry.js.map +1 -1
- package/dist/esm/sd-popover.entry.js +6 -6
- package/dist/esm/sd-popover.entry.js.map +1 -1
- package/dist/esm/sd-progress.entry.js +5 -5
- package/dist/esm/sd-progress.entry.js.map +1 -1
- package/dist/esm/sd-radio-button-group.entry.js +69 -0
- package/dist/esm/sd-radio-button-group.entry.js.map +1 -0
- package/dist/esm/sd-select-multiple-group.entry.js +7 -7
- package/dist/esm/sd-select-multiple-group.entry.js.map +1 -1
- package/dist/esm/sd-select-option-group.entry.js +6 -6
- package/dist/esm/sd-select-option-group.entry.js.map +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-table.entry.js.map +1 -1
- package/dist/esm/sd-tbody_3.entry.js +10 -10
- package/dist/esm/sd-td.entry.js +5 -5
- package/dist/esm/sd-td.entry.js.map +1 -1
- package/dist/esm/{tooltipArrow-BwO7_hdW.js → tooltipArrow-DFRZWz6D.js} +3 -3
- package/dist/esm/{tooltipArrow-BwO7_hdW.js.map → tooltipArrow-DFRZWz6D.js.map} +1 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +29 -0
- package/dist/types/components/sd-radio-button-group/sd-radio-button-group.d.ts +24 -0
- package/dist/types/components/sd-select/sd-select.d.ts +1 -0
- package/dist/types/components/sd-select-multiple/sd-select-multiple.d.ts +1 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +22 -0
- package/dist/types/components/sd-toast-message/sd-toast-message.d.ts +19 -0
- package/dist/types/components/sd-toggle-button/sd-toggle-button.d.ts +14 -0
- package/dist/types/components.d.ts +311 -8
- package/dist/types/stencil-public-runtime.d.ts +43 -0
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +1611 -1136
- package/hydrate/index.mjs +1610 -1137
- package/package.json +95 -95
- package/dist/cjs/index-Bxead0A0.js.map +0 -1
- package/dist/cjs/sd-badge.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-card.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-date-box.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-date-picker.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-date-range-picker.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-modal-card.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-progress.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-select-multiple-group.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +0 -263
- package/dist/cjs/sd-select-multiple.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-select-option-group.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-table.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-tag.cjs.entry.js +0 -57
- package/dist/cjs/sd-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-tbody.sd-th.sd-tr.entry.cjs.js.map +0 -1
- package/dist/cjs/sd-td.entry.cjs.js.map +0 -1
- package/dist/components/p-1SxxSEqq.js.map +0 -1
- package/dist/components/p-9kN1E6Ra.js.map +0 -1
- package/dist/components/p-BSUHSOXX.js.map +0 -1
- package/dist/components/p-BsyfatBe.js.map +0 -1
- package/dist/components/p-C171iavd.js.map +0 -1
- package/dist/components/p-C6tAa8Q4.js.map +0 -1
- package/dist/components/p-C9fSCxHc.js +0 -109
- package/dist/components/p-C9fSCxHc.js.map +0 -1
- package/dist/components/p-CkKxyn_K.js.map +0 -1
- package/dist/components/p-D8f0ASS6.js +0 -34
- package/dist/components/p-D8f0ASS6.js.map +0 -1
- package/dist/components/p-DY6t0qQj.js.map +0 -1
- package/dist/components/p-DiehM5Y0.js.map +0 -1
- package/dist/components/p-DyGUXuvD.js.map +0 -1
- package/dist/components/p-S7M--xNH.js.map +0 -1
- package/dist/components/p-TFWJruz2.js.map +0 -1
- package/dist/components/p-wQDv-v0B.js +0 -34
- package/dist/components/p-wQDv-v0B.js.map +0 -1
- package/dist/design-system/p-1b6aec43.entry.js +0 -2
- package/dist/design-system/p-1b6aec43.entry.js.map +0 -1
- package/dist/design-system/p-1e175d35.entry.js +0 -2
- package/dist/design-system/p-1e175d35.entry.js.map +0 -1
- package/dist/design-system/p-1efccd9d.entry.js +0 -2
- package/dist/design-system/p-1efccd9d.entry.js.map +0 -1
- package/dist/design-system/p-3d78a7c7.entry.js +0 -2
- package/dist/design-system/p-3d78a7c7.entry.js.map +0 -1
- package/dist/design-system/p-4828e65b.entry.js +0 -2
- package/dist/design-system/p-4828e65b.entry.js.map +0 -1
- package/dist/design-system/p-4e7bc094.entry.js +0 -2
- package/dist/design-system/p-4e7bc094.entry.js.map +0 -1
- package/dist/design-system/p-6d81e6f8.entry.js +0 -2
- package/dist/design-system/p-6d81e6f8.entry.js.map +0 -1
- package/dist/design-system/p-717a736c.entry.js +0 -2
- package/dist/design-system/p-717a736c.entry.js.map +0 -1
- package/dist/design-system/p-74f12ea0.entry.js +0 -2
- package/dist/design-system/p-74f12ea0.entry.js.map +0 -1
- package/dist/design-system/p-7d14540d.entry.js +0 -2
- package/dist/design-system/p-7d14540d.entry.js.map +0 -1
- package/dist/design-system/p-8d6d225d.entry.js +0 -2
- package/dist/design-system/p-8d6d225d.entry.js.map +0 -1
- package/dist/design-system/p-ClyGLKUd.js.map +0 -1
- package/dist/design-system/p-b0f77793.entry.js +0 -2
- package/dist/design-system/p-b0f77793.entry.js.map +0 -1
- package/dist/design-system/p-b892a722.entry.js +0 -2
- package/dist/design-system/p-b892a722.entry.js.map +0 -1
- package/dist/design-system/p-bc905ded.entry.js +0 -2
- package/dist/design-system/p-bc905ded.entry.js.map +0 -1
- package/dist/design-system/p-c7e8a2c0.entry.js +0 -2
- package/dist/design-system/p-c7e8a2c0.entry.js.map +0 -1
- package/dist/design-system/p-c9b70553.entry.js +0 -2
- package/dist/design-system/p-c9b70553.entry.js.map +0 -1
- package/dist/design-system/sd-badge.entry.esm.js.map +0 -1
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +0 -1
- package/dist/design-system/sd-card.entry.esm.js.map +0 -1
- package/dist/design-system/sd-date-box.entry.esm.js.map +0 -1
- package/dist/design-system/sd-date-picker.entry.esm.js.map +0 -1
- package/dist/design-system/sd-date-range-picker.entry.esm.js.map +0 -1
- package/dist/design-system/sd-modal-card.entry.esm.js.map +0 -1
- package/dist/design-system/sd-popover.entry.esm.js.map +0 -1
- package/dist/design-system/sd-progress.entry.esm.js.map +0 -1
- package/dist/design-system/sd-select-multiple-group.entry.esm.js.map +0 -1
- package/dist/design-system/sd-select-multiple.entry.esm.js.map +0 -1
- package/dist/design-system/sd-table.entry.esm.js.map +0 -1
- package/dist/design-system/sd-tag.entry.esm.js.map +0 -1
- package/dist/design-system/sd-tbody.sd-th.sd-tr.entry.esm.js.map +0 -1
- package/dist/design-system/sd-td.entry.esm.js.map +0 -1
- package/dist/esm/index-ClyGLKUd.js.map +0 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-radio-group.sd-select.sd-select-option.sd-table-backup.sd-toggle.sd-tooltip.sd-tooltip-portal.entry.js.map +0 -1
- package/dist/esm/sd-select-multiple.entry.js +0 -261
- package/dist/esm/sd-select-multiple.entry.js.map +0 -1
- package/dist/esm/sd-tag.entry.js +0 -55
- package/dist/esm/sd-tag.entry.js.map +0 -1
- package/dist/esm/sd-tbody.sd-th.sd-tr.entry.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -2,9 +2,100 @@
|
|
|
2
2
|
|
|
3
3
|
var stream = require('stream');
|
|
4
4
|
|
|
5
|
+
// src/app-data/index.ts
|
|
6
|
+
var BUILD = {
|
|
7
|
+
allRenderFn: false,
|
|
8
|
+
element: true,
|
|
9
|
+
event: true,
|
|
10
|
+
hasRenderFn: true,
|
|
11
|
+
hostListener: true,
|
|
12
|
+
hostListenerTargetWindow: true,
|
|
13
|
+
hostListenerTargetDocument: true,
|
|
14
|
+
hostListenerTargetBody: true,
|
|
15
|
+
hostListenerTargetParent: false,
|
|
16
|
+
hostListenerTarget: true,
|
|
17
|
+
member: true,
|
|
18
|
+
method: true,
|
|
19
|
+
mode: true,
|
|
20
|
+
observeAttribute: true,
|
|
21
|
+
prop: true,
|
|
22
|
+
propMutable: true,
|
|
23
|
+
reflect: true,
|
|
24
|
+
scoped: true,
|
|
25
|
+
shadowDom: true,
|
|
26
|
+
slot: true,
|
|
27
|
+
cssAnnotations: true,
|
|
28
|
+
state: true,
|
|
29
|
+
style: true,
|
|
30
|
+
formAssociated: false,
|
|
31
|
+
svg: true,
|
|
32
|
+
updatable: true,
|
|
33
|
+
vdomAttribute: true,
|
|
34
|
+
vdomXlink: true,
|
|
35
|
+
vdomClass: true,
|
|
36
|
+
vdomFunctional: true,
|
|
37
|
+
vdomKey: true,
|
|
38
|
+
vdomListener: true,
|
|
39
|
+
vdomRef: true,
|
|
40
|
+
vdomPropOrAttr: true,
|
|
41
|
+
vdomRender: true,
|
|
42
|
+
vdomStyle: true,
|
|
43
|
+
vdomText: true,
|
|
44
|
+
propChangeCallback: true,
|
|
45
|
+
taskQueue: true,
|
|
46
|
+
hotModuleReplacement: false,
|
|
47
|
+
isDebug: false,
|
|
48
|
+
isDev: false,
|
|
49
|
+
isTesting: false,
|
|
50
|
+
hydrateServerSide: false,
|
|
51
|
+
hydrateClientSide: false,
|
|
52
|
+
lifecycleDOMEvents: false,
|
|
53
|
+
lazyLoad: false,
|
|
54
|
+
profile: false,
|
|
55
|
+
slotRelocation: true,
|
|
56
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
57
|
+
appendChildSlotFix: false,
|
|
58
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
59
|
+
cloneNodeFix: false,
|
|
60
|
+
hydratedAttribute: false,
|
|
61
|
+
hydratedClass: true,
|
|
62
|
+
// TODO(STENCIL-1305): remove this option
|
|
63
|
+
scriptDataOpts: false,
|
|
64
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
65
|
+
scopedSlotTextContentFix: false,
|
|
66
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
67
|
+
shadowDomShim: false,
|
|
68
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
69
|
+
slotChildNodesFix: false,
|
|
70
|
+
invisiblePrehydration: true,
|
|
71
|
+
propBoolean: true,
|
|
72
|
+
propNumber: true,
|
|
73
|
+
propString: true,
|
|
74
|
+
constructableCSS: true,
|
|
75
|
+
devTools: false,
|
|
76
|
+
shadowDelegatesFocus: true,
|
|
77
|
+
initializeNextTick: false,
|
|
78
|
+
asyncLoading: true,
|
|
79
|
+
asyncQueue: false,
|
|
80
|
+
// TODO: deprecated in favour of `setTagTransformer` and `transformTag`. Remove in 5.0
|
|
81
|
+
transformTagName: false,
|
|
82
|
+
attachStyles: true,
|
|
83
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
84
|
+
experimentalSlotFixes: false
|
|
85
|
+
};
|
|
86
|
+
var Env = {};
|
|
87
|
+
var NAMESPACE = (
|
|
88
|
+
/* default */
|
|
89
|
+
"app"
|
|
90
|
+
);
|
|
91
|
+
|
|
5
92
|
const modeResolutionChain = [];
|
|
6
93
|
|
|
7
94
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
95
|
+
var everywhere;
|
|
96
|
+
try { everywhere = global || globalThis; }
|
|
97
|
+
catch (e) { everywhere = window || globalThis; }
|
|
98
|
+
|
|
8
99
|
var globalThis = $stencilWindow;
|
|
9
100
|
var self = $stencilWindow;
|
|
10
101
|
var top = $stencilWindow;
|
|
@@ -130,7 +221,7 @@ const NAMESPACE = 'design-system';
|
|
|
130
221
|
const BUILD = /* design-system */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
131
222
|
|
|
132
223
|
/*
|
|
133
|
-
Stencil Hydrate Platform v4.
|
|
224
|
+
Stencil Hydrate Platform v4.39.0 | MIT Licensed | https://stenciljs.com
|
|
134
225
|
*/
|
|
135
226
|
var __defProp = Object.defineProperty;
|
|
136
227
|
var __export = (target, all) => {
|
|
@@ -644,6 +735,9 @@ var attachStyles = (hostRef) => {
|
|
|
644
735
|
};
|
|
645
736
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
646
737
|
var h = (nodeName, vnodeData, ...children) => {
|
|
738
|
+
if (typeof nodeName === "string") {
|
|
739
|
+
nodeName = transformTag(nodeName);
|
|
740
|
+
}
|
|
647
741
|
let child = null;
|
|
648
742
|
let key = null;
|
|
649
743
|
let slotName = null;
|
|
@@ -800,7 +894,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
800
894
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
801
895
|
const node = childRenderNode.$elm$;
|
|
802
896
|
if (!shadowRoot) {
|
|
803
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
897
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
804
898
|
if (childRenderNode.$tag$ === "slot") {
|
|
805
899
|
node["s-cr"] = hostElm["s-cr"];
|
|
806
900
|
}
|
|
@@ -2778,6 +2872,9 @@ var getHostListenerTarget = (doc, elm, flags) => {
|
|
|
2778
2872
|
return elm;
|
|
2779
2873
|
};
|
|
2780
2874
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2875
|
+
function transformTag(tag) {
|
|
2876
|
+
return tag;
|
|
2877
|
+
}
|
|
2781
2878
|
|
|
2782
2879
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2783
2880
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
@@ -3335,9 +3432,15 @@ var isMemberInElement = (elm, memberName) => {
|
|
|
3335
3432
|
var registerComponents = (Cstrs) => {
|
|
3336
3433
|
for (const Cstr of Cstrs) {
|
|
3337
3434
|
const exportName = Cstr.cmpMeta.$tagName$;
|
|
3435
|
+
const transformedTagName = everywhere.tagTransform(exportName);
|
|
3338
3436
|
cmpModules.set(exportName, {
|
|
3339
3437
|
[exportName]: Cstr
|
|
3340
3438
|
});
|
|
3439
|
+
if (transformedTagName !== exportName) {
|
|
3440
|
+
cmpModules.set(transformedTagName, {
|
|
3441
|
+
[transformedTagName]: Cstr
|
|
3442
|
+
});
|
|
3443
|
+
}
|
|
3341
3444
|
}
|
|
3342
3445
|
};
|
|
3343
3446
|
var win = window;
|
|
@@ -3680,7 +3783,7 @@ function resolveColor(input, fallback = '#025497') {
|
|
|
3680
3783
|
return mapped || input;
|
|
3681
3784
|
}
|
|
3682
3785
|
|
|
3683
|
-
const sdBadgeCss =
|
|
3786
|
+
const sdBadgeCss = () => `.sd-badge.sc-sd-badge{display:inline-flex;align-items:center;justify-content:center}.sd-badge.sc-sd-badge .sd-badge__dot.sc-sd-badge{background:var(--sd-badge-color, #0075ff)}.sd-badge.sc-sd-badge .sd-badge__label.sc-sd-badge{margin-left:8px;font-size:12px;font-weight:500;line-height:20px;color:#333333}.sd-badge--sm.sc-sd-badge .sd-badge__dot.sc-sd-badge{width:4px;height:4px;min-width:4px;min-height:4px;border-radius:2px}.sd-badge--md.sc-sd-badge .sd-badge__dot.sc-sd-badge{width:8px;height:8px;min-width:8px;min-height:8px;border-radius:4px}`;
|
|
3684
3787
|
|
|
3685
3788
|
class SdBadge {
|
|
3686
3789
|
constructor(hostRef) {
|
|
@@ -3691,9 +3794,9 @@ class SdBadge {
|
|
|
3691
3794
|
label = '';
|
|
3692
3795
|
render() {
|
|
3693
3796
|
const resolvedColor = resolveColor(this.color);
|
|
3694
|
-
return (hAsync(Host, { key: '
|
|
3797
|
+
return (hAsync(Host, { key: '3e165b8e2f95b48fb1e80173a3e30c87d5da29db' }, hAsync("div", { key: '6bb4a29f27dd191881a5764b347db47511718c3a', class: `sd-badge sd-badge--${this.size}`, style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: 'f766cbca2d033075ef6d1c15bec084e2bfa7aec2', class: "sd-badge__dot" }), hAsync("div", { key: '07f2de048fa03232d1dcee43bf389f95cd691c06', class: "sd-badge__label" }, this.label))));
|
|
3695
3798
|
}
|
|
3696
|
-
static get style() { return sdBadgeCss; }
|
|
3799
|
+
static get style() { return sdBadgeCss(); }
|
|
3697
3800
|
static get cmpMeta() { return {
|
|
3698
3801
|
"$flags$": 770,
|
|
3699
3802
|
"$tagName$": "sd-badge",
|
|
@@ -3708,7 +3811,7 @@ class SdBadge {
|
|
|
3708
3811
|
}; }
|
|
3709
3812
|
}
|
|
3710
3813
|
|
|
3711
|
-
const sdButtonCss =
|
|
3814
|
+
const sdButtonCss = () => `sd-button{display:inline-block;width:fit-content;height:fit-content}.sd-button{text-decoration:none;cursor:pointer;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}.sd-button--xs{padding:0 8px;font-size:12px;font-weight:500;line-height:20px;min-height:24px}.sd-button--sm{padding:0 12px;font-size:12px;font-weight:500;line-height:20px;min-height:28px}.sd-button--md{padding:0 20px;font-size:16px;font-weight:500;line-height:26px;min-height:34px}.sd-button--lg{padding:0 28px;font-size:18px;font-weight:500;line-height:30px;min-height:62px}.sd-button--primary{background-color:var(--button-color);color:white;transition:filter 0.2s ease}.sd-button--primary::before{content:"";position:absolute;inset:0;background:#000000;opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--primary:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.25}.sd-button--outline{background:white;border:1px solid var(--button-color);color:var(--button-color)}.sd-button--outline::before{content:"";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--outline:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--outline .sd-button__content{position:relative;z-index:1}.sd-button--ghost{background-color:transparent;color:var(--button-color);border-color:transparent}.sd-button--ghost::before{content:"";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--ghost:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--ghost .sd-button__content{position:relative;z-index:1}.sd-button--disabled{border:1px solid #cccccc;background:#e1e1e1;color:#888888;cursor:not-allowed !important}.sd-button--icon-only{padding:0;width:fit-content;height:fit-content;aspect-ratio:1/1}.sd-button--no-hover:hover::before{opacity:0 !important}.sd-button .sd-button__content{display:inline-flex;align-items:center;justify-content:center;gap:4px;z-index:1;font-weight:500}`;
|
|
3712
3815
|
|
|
3713
3816
|
const ICON_SIZES = {
|
|
3714
3817
|
xs: 12,
|
|
@@ -3765,7 +3868,7 @@ class SdButton {
|
|
|
3765
3868
|
const resolvedColor = resolveColor(this.color);
|
|
3766
3869
|
return (hAsync(Host, { key: 'b30c8006e2f187fb971bcd47f8ce4a91d1dc47a6', style: { '--button-color': resolvedColor } }, hAsync("button", { key: 'f494c93fc0b9d55537b468f5c6458569df962633', class: `${buttonClasses} ${this.class}`, type: this.type, disabled: this.disabled, onClick: this.handleClick }, hAsync("div", { key: '7d64a6526baeac8569cccc60d9befacef3e3777d', class: "sd-button__content" }, this.icon && (hAsync("sd-icon", { key: '9439e9456783aa5b057d383252a6b0c45a44b588', class: "sd-button__icon sd-button__icon--left", name: this.icon, size: this.iconSize ? this.iconSize : ICON_SIZES[this.size], color: this.iconColor ? this.iconColor : this.variant === 'primary' ? '#fff' : resolvedColor })), this.label && hAsync("div", { key: '324371a6f8864c444cda39e7b349b4c9ec19b7f6', class: "sd-button__label" }, this.label), this.iconRight && (hAsync("sd-icon", { key: '733790ceda6e1822c71911b17e66f527936b15a2', class: "sd-button__icon sd-button__icon--right", name: this.iconRight, size: ICON_SIZES[this.size], color: this.variant === 'primary' ? '#fff' : resolvedColor }))))));
|
|
3767
3870
|
}
|
|
3768
|
-
static get style() { return sdButtonCss; }
|
|
3871
|
+
static get style() { return sdButtonCss(); }
|
|
3769
3872
|
static get cmpMeta() { return {
|
|
3770
3873
|
"$flags$": 768,
|
|
3771
3874
|
"$tagName$": "sd-button",
|
|
@@ -3789,7 +3892,7 @@ class SdButton {
|
|
|
3789
3892
|
}; }
|
|
3790
3893
|
}
|
|
3791
3894
|
|
|
3792
|
-
const sdCardCss =
|
|
3895
|
+
const sdCardCss = () => `sd-card{display:block;height:fit-content}sd-card .sd-card{border-radius:8px;background:white}sd-card .sd-card.sd-card--bordered{border:1px solid #e1e1e1}`;
|
|
3793
3896
|
|
|
3794
3897
|
class SdCard {
|
|
3795
3898
|
constructor(hostRef) {
|
|
@@ -3798,9 +3901,9 @@ class SdCard {
|
|
|
3798
3901
|
bordered = true;
|
|
3799
3902
|
class = '';
|
|
3800
3903
|
render() {
|
|
3801
|
-
return (hAsync(Host, { key: '
|
|
3904
|
+
return (hAsync(Host, { key: '4a44b9ef84a83b91879dabaa099a21b499baad2c' }, hAsync("div", { key: 'cb8499ddef896bf1e2ba753dd4b0a35f41f7e39f', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, hAsync("slot", { key: 'e7d6f9ffa8ad8d5061471a6e8cbeb5c4d5d5f2b4' }))));
|
|
3802
3905
|
}
|
|
3803
|
-
static get style() { return sdCardCss; }
|
|
3906
|
+
static get style() { return sdCardCss(); }
|
|
3804
3907
|
static get cmpMeta() { return {
|
|
3805
3908
|
"$flags$": 772,
|
|
3806
3909
|
"$tagName$": "sd-card",
|
|
@@ -3814,7 +3917,7 @@ class SdCard {
|
|
|
3814
3917
|
}; }
|
|
3815
3918
|
}
|
|
3816
3919
|
|
|
3817
|
-
const sdCheckboxCss =
|
|
3920
|
+
const sdCheckboxCss = () => `sd-checkbox{display:inline-block;height:20px;line-height:0}sd-checkbox .sd-checkbox{cursor:pointer;display:inline-flex;align-items:center;gap:8px;height:20px;max-height:20px}sd-checkbox .sd-checkbox>input{display:none}sd-checkbox .sd-checkbox:hover.sd-checkbox--checked .sd-checkbox__bg,sd-checkbox .sd-checkbox:hover.sd-checkbox--indeterminate .sd-checkbox__bg{border-color:#005cc9;background:#005cc9}sd-checkbox .sd-checkbox:hover.sd-checkbox--unchecked .sd-checkbox__bg{border:1px solid #0075ff;background:#d9eaff}sd-checkbox .sd-checkbox:hover.sd-checkbox--disabled .sd-checkbox__bg{border:1px solid transparent;background:#eeeeee}sd-checkbox .sd-checkbox__bg{width:16px;height:16px;border-radius:2px;border:1px solid #888888;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;line-height:0}sd-checkbox .sd-checkbox__label{font-size:12px;color:#333333;line-height:20px}sd-checkbox .sd-checkbox--checked.sd-checkbox--disabled .sd-checkbox__bg,sd-checkbox .sd-checkbox--indeterminate.sd-checkbox--disabled .sd-checkbox__bg{background:#eeeeee;border:1px solid #cccccc !important}sd-checkbox .sd-checkbox--checked .sd-checkbox__bg,sd-checkbox .sd-checkbox--indeterminate .sd-checkbox__bg{border:1px solid #0075ff;background:#0075ff}sd-checkbox .sd-checkbox--unchecked .sd-checkbox__bg{background:white}sd-checkbox .sd-checkbox--disabled{cursor:not-allowed}sd-checkbox .sd-checkbox--disabled .sd-checkbox__bg{background:#eeeeee;border:1px solid #cccccc !important}`;
|
|
3818
3921
|
|
|
3819
3922
|
class SdCheckbox {
|
|
3820
3923
|
constructor(hostRef) {
|
|
@@ -3893,7 +3996,7 @@ class SdCheckbox {
|
|
|
3893
3996
|
static get watchers() { return {
|
|
3894
3997
|
"checked": ["watchValueHandler"]
|
|
3895
3998
|
}; }
|
|
3896
|
-
static get style() { return sdCheckboxCss; }
|
|
3999
|
+
static get style() { return sdCheckboxCss(); }
|
|
3897
4000
|
static get cmpMeta() { return {
|
|
3898
4001
|
"$flags$": 768,
|
|
3899
4002
|
"$tagName$": "sd-checkbox",
|
|
@@ -3910,7 +4013,7 @@ class SdCheckbox {
|
|
|
3910
4013
|
}; }
|
|
3911
4014
|
}
|
|
3912
4015
|
|
|
3913
|
-
const sdDateBoxCss =
|
|
4016
|
+
const sdDateBoxCss = () => `.sd-date-box.sc-sd-date-box-h{display:flex;align-items:center;justify-content:center;width:38px;height:36px;font-size:14px;position:relative;box-sizing:border-box;text-align:center;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);border-radius:14px}.sd-date-box.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box{width:28px;height:28px;border-radius:14px;position:relative}.sd-date-box.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box .sd-date-box__label.sc-sd-date-box{position:relative;z-index:2;user-select:none;line-height:28px}.sd-date-box.sd-date-box--disabled.sc-sd-date-box-h{color:#cccccc;cursor:default !important;pointer-events:none}.sd-date-box.sc-sd-date-box-h:not(.sd-date-box--disabled){cursor:pointer}.sd-date-box.sd-hoverable.sc-sd-date-box-h:hover .sd-date-box__content.sc-sd-date-box{background:#d9eaff}.sd-date-box.sd-date-box--in-range.sc-sd-date-box-h:not(.sd-date-box--disabled) .sd-date-box__content.sc-sd-date-box::before{content:"";position:absolute;top:0;left:-5px;width:calc(100% + 10px);height:100%;background:#d9eaff}.sd-date-box.sd-date-box--in-range.sd-date-box--type-start.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box::before{left:auto !important;width:19px !important;right:-5px}.sd-date-box.sd-date-box--in-range.sd-date-box--type-end.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box::before{width:19px !important}.sd-date-box.sd-date-box--selected.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box::after,.sd-date-box.sd-date-box--type-start.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box::after,.sd-date-box.sd-date-box--type-end.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box::after{content:"";position:absolute;inset:0;background:#0075ff;border-radius:14px;z-index:1}.sd-date-box.sd-date-box--selected.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box .sd-date-box__label.sc-sd-date-box,.sd-date-box.sd-date-box--type-start.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box .sd-date-box__label.sc-sd-date-box,.sd-date-box.sd-date-box--type-end.sc-sd-date-box-h .sd-date-box__content.sc-sd-date-box .sd-date-box__label.sc-sd-date-box{color:white;font-weight:700}.sd-date-box.sd-date-box--today.sc-sd-date-box-h:not(.sd-date-box--selected) .sd-date-box__content.sc-sd-date-box::after{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:28px;height:28px;border:1px solid #e1e1e1 !important;border-radius:14px}`;
|
|
3914
4017
|
|
|
3915
4018
|
class SdDateBox {
|
|
3916
4019
|
constructor(hostRef) {
|
|
@@ -3954,7 +4057,7 @@ class SdDateBox {
|
|
|
3954
4057
|
'sd-date-box--type-end': this.type === 'end',
|
|
3955
4058
|
}, onClick: () => this.handleClickDate(), onMouseOver: () => this.handleHoverDate() }, hAsync("div", { key: 'c2c7dcc9b384e8d000d8803fa4e4a5fcc1f2e527', class: "sd-date-box__content" }, hAsync("div", { key: '7c002c5356d9c3fcf8ec0c8f751e97fd42e59645', class: "sd-date-box__label" }, this.date))));
|
|
3956
4059
|
}
|
|
3957
|
-
static get style() { return sdDateBoxCss; }
|
|
4060
|
+
static get style() { return sdDateBoxCss(); }
|
|
3958
4061
|
static get cmpMeta() { return {
|
|
3959
4062
|
"$flags$": 770,
|
|
3960
4063
|
"$tagName$": "sd-date-box",
|
|
@@ -4030,7 +4133,7 @@ const useDatePicker = () => {
|
|
|
4030
4133
|
return { formatDate, createCalendar, calculateYearMonth };
|
|
4031
4134
|
};
|
|
4032
4135
|
|
|
4033
|
-
const sdDatePickerCss =
|
|
4136
|
+
const sdDatePickerCss = () => `.sd-date-picker.sc-sd-date-picker-h{width:160px;display:inline-block}.sd-date-picker__menu.sc-sd-date-picker{width:304px;box-sizing:border-box;border-radius:8px;padding:24px 19px;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2);background:white}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker{display:flex;flex-flow:row nowrap;align-items:center;gap:20px;font-size:14px;padding:0 5px;height:24px;line-height:24px}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .year-nav.sc-sd-date-picker,.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .month-nav.sc-sd-date-picker{display:flex;flex-flow:row nowrap;align-items:center;gap:12px}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .year-nav.sc-sd-date-picker button.sc-sd-date-picker,.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .month-nav.sc-sd-date-picker button.sc-sd-date-picker{background:none;border:none;cursor:pointer;margin:0;padding:0}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .year-nav__current.sc-sd-date-picker{width:40px;text-align:center}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__header.sc-sd-date-picker .month-nav__current.sc-sd-date-picker{width:100px;text-align:center}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__days.sc-sd-date-picker{margin-top:8px;display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));column-gap:10px;padding:0 5px}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__days.sc-sd-date-picker .day.sc-sd-date-picker{width:28px;height:20px;font-size:12px;line-height:20px;text-align:center;color:#888888}.sd-date-picker__menu.sc-sd-date-picker .sd-date-picker__body.sc-sd-date-picker{margin-top:12px;display:grid;grid-template-columns:repeat(7, minmax(0, 1fr))}`;
|
|
4034
4137
|
|
|
4035
4138
|
class SdDatePicker {
|
|
4036
4139
|
constructor(hostRef) {
|
|
@@ -4109,7 +4212,7 @@ class SdDatePicker {
|
|
|
4109
4212
|
this.isOpen = false;
|
|
4110
4213
|
};
|
|
4111
4214
|
render() {
|
|
4112
|
-
return (hAsync(Host, { key: '
|
|
4215
|
+
return (hAsync(Host, { key: 'b60ea48c6ea76b984c48040b32c83358ab7776df', class: "sd-date-picker" }, hAsync("sd-input", { key: 'a55a5d6b0e752081e919fa317761a9529b58b75c', ref: el => (this.inputEl = el), value: this.date, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '707f8c0a38a72651581228d1ac887bd38fbb33b0', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '4fb84ae1246c05546dc063abfce4d89e2440c8ff', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: 'c8dae2a875b66cb90a2de898fb5588e4429e01a2', class: "sd-date-picker__menu" }, hAsync("div", { key: '35d9d132bb2e68156c12019cb9ca20eaef7cd5dc', class: "sd-date-picker__header" }, hAsync("div", { key: '327bb3fe00fb31c4ec9fde79bc6984fe176462c9', class: "year-nav" }, hAsync("button", { key: '4e67fe3d237cb864e9d5cbf3d4ace942ac8f02cc', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, hAsync("sd-icon", { key: 'd97729c331c93fe122b51ee2dee4f4b9ddf70ad8', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '8c75d30528776992327504b05688cacbcab513d3', class: "year-nav__current" }, this.currentYear), hAsync("button", { key: '5f4c36b216ab1230719998e0d8a00bba59fd49bd', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, hAsync("sd-icon", { key: '79b2a3efdbac3f4fe32105ddaf77e023bdb7ac43', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: 'b8d141899f9ad45f4b16e376d78e181f710e28df', class: "month-nav" }, hAsync("button", { key: '07b81a1875dab96062d32129a58efcf50c11b660', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, hAsync("sd-icon", { key: 'b5447e3e134cda07140c1d6e2708a97cc87e2b32', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '4161405b68aa5166423974167a455fa411891272', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), hAsync("button", { key: '3fd84295b94f92ff0fbb8347ffb03c4d5d20423c', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, hAsync("sd-icon", { key: 'c9879eb2a25d727cc76f538b974588ca19a3f85e', name: "arrowRight", size: "12", color: "#CCCCCC" })))), hAsync("div", { key: '3030bd477ec7b4f4aae9e36b33962dad48492c9a', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("div", { key: day, class: "day" }, day)))), hAsync("div", { key: 'e384b514d1fe0cca98935d0e5ad272291421eb34', class: "sd-date-picker__body" }, [
|
|
4113
4216
|
...this.calendar.prevMonthDays,
|
|
4114
4217
|
...this.calendar.days,
|
|
4115
4218
|
...this.calendar.afterMonthDays,
|
|
@@ -4120,7 +4223,7 @@ class SdDatePicker {
|
|
|
4120
4223
|
: undefined }));
|
|
4121
4224
|
})))))));
|
|
4122
4225
|
}
|
|
4123
|
-
static get style() { return sdDatePickerCss; }
|
|
4226
|
+
static get style() { return sdDatePickerCss(); }
|
|
4124
4227
|
static get cmpMeta() { return {
|
|
4125
4228
|
"$flags$": 770,
|
|
4126
4229
|
"$tagName$": "sd-date-picker",
|
|
@@ -4140,7 +4243,7 @@ class SdDatePicker {
|
|
|
4140
4243
|
}; }
|
|
4141
4244
|
}
|
|
4142
4245
|
|
|
4143
|
-
const sdDateRangePickerCss =
|
|
4246
|
+
const sdDateRangePickerCss = () => `.sd-date-range-picker.sc-sd-date-range-picker-h{width:210px;display:inline-block}.sd-date-range-picker__menu.sc-sd-date-range-picker{width:609px;box-sizing:border-box;border-radius:8px;padding:24px 19px;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2);background:white}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__header.sc-sd-date-range-picker{margin-bottom:16px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__header.sc-sd-date-range-picker .header-label.sc-sd-date-range-picker{margin:0 12px;width:40px;text-align:center;font-size:14px;line-height:24px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker{display:flex;flex-flow:row nowrap;align-items:stretch;gap:19px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker{width:266px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-header.sc-sd-date-range-picker{width:100%;height:24px;line-height:24px;font-size:14px;text-align:center;position:relative;padding:0 5px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-header.sc-sd-date-range-picker button.sc-sd-date-range-picker{position:absolute;top:50%;transform:translateY(-50%)}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-header.sc-sd-date-range-picker button.header-button-prev.sc-sd-date-range-picker{left:5px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-header.sc-sd-date-range-picker button.header-button-next.sc-sd-date-range-picker{right:5px;left:auto}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-days.sc-sd-date-range-picker{padding:0 5px;margin-top:8px;display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));column-gap:10px}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-days.sc-sd-date-range-picker .day.sc-sd-date-range-picker{width:28px;height:20px;font-size:12px;line-height:20px;text-align:center;color:#888888}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .calendar-container.sc-sd-date-range-picker .calendar-body.sc-sd-date-range-picker{margin-top:12px;display:grid;grid-template-columns:repeat(7, minmax(0, 1fr))}.sd-date-range-picker__menu.sc-sd-date-range-picker .sd-date-range-picker__body.sc-sd-date-range-picker .separator.sc-sd-date-range-picker{width:1px;background-color:#d8d8d8}`;
|
|
4144
4247
|
|
|
4145
4248
|
class SdDateRangePicker {
|
|
4146
4249
|
constructor(hostRef) {
|
|
@@ -4282,9 +4385,9 @@ class SdDateRangePicker {
|
|
|
4282
4385
|
this.isOpen = false;
|
|
4283
4386
|
};
|
|
4284
4387
|
render() {
|
|
4285
|
-
return (hAsync(Host, { key: '
|
|
4388
|
+
return (hAsync(Host, { key: 'a6053b18e510d72345d3fc8622a34e2e916ae09a', class: "sd-date-range-picker" }, hAsync("sd-input", { key: '32a1c3e8c6f56a8c88ea5731d7aba8612918a412', ref: el => (this.inputEl = el), value: `${this.dateRange[0]} ~ ${this.dateRange[1]}`, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
4286
4389
|
margin: '0 0 0 8px',
|
|
4287
|
-
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '
|
|
4390
|
+
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'c1e7d9c3a3becc4f8cd09a4a1034788d75b71b43', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: 'ac35b85f5ec3fdf6f89929e1d0ce16c61de5a24d', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: 'f9ede52633306262d3d1f53fe98c0ed71d2760c3', class: "sd-date-range-picker__menu" }, hAsync("div", { key: '46b75bb25b1c11b2a5c9d95998a6b8a909d271e2', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, hAsync("button", { key: 'f194f5c67019c933934526591834305cf2a33587', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, hAsync("sd-icon", { key: '43e8213a6bee3dcd9f2045f7ebb404da8a904a8a', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("div", { key: '2b585ec3a4d0f2ed2e1ae4f3a49a4b511f076ba9', class: "header-label" }, this.prevYear), hAsync("button", { key: 'c97c6694b39f0a8979e90dbbca49615efcdde694', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, hAsync("sd-icon", { key: 'b64856f508e653a676a6bc3c7dfc4d1ecb87149a', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: 'd983671d652eca108580817d3c1181676985bec7', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (hAsync(Fragment, null, index === 1 && hAsync("div", { class: "separator" }), hAsync("div", { key: index, class: "calendar-container" }, hAsync("div", { class: "calendar-header" }, hAsync("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, hAsync("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
4288
4391
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
4289
4392
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), hAsync("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), hAsync("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (hAsync("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date ===
|
|
4290
4393
|
this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), type: this.getDateBoxType(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), isToday: today ===
|
|
@@ -4292,7 +4395,7 @@ class SdDateRangePicker {
|
|
|
4292
4395
|
? true
|
|
4293
4396
|
: this.isDisabledDate(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), inRange: this.isDateInRange(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), onClick: () => this.handleDateClick(index === 0 ? 'prev' : 'next', Number(day)), onMouseOver: () => this.handleDateHover(index === 0 ? 'prev' : 'next', Number(day)) }))))))))))))));
|
|
4294
4397
|
}
|
|
4295
|
-
static get style() { return sdDateRangePickerCss; }
|
|
4398
|
+
static get style() { return sdDateRangePickerCss(); }
|
|
4296
4399
|
static get cmpMeta() { return {
|
|
4297
4400
|
"$flags$": 770,
|
|
4298
4401
|
"$tagName$": "sd-date-range-picker",
|
|
@@ -4314,7 +4417,141 @@ class SdDateRangePicker {
|
|
|
4314
4417
|
}; }
|
|
4315
4418
|
}
|
|
4316
4419
|
|
|
4317
|
-
const
|
|
4420
|
+
const sdFilePickerCss = () => `.sd-file-picker{display:inline-flex;align-items:center;max-width:var(--picker-width, 100%);height:28px;gap:8px;padding:4px 8px;border:1px solid #aaaaaa;border-radius:4px;background-color:#ffffff;cursor:pointer;user-select:none;position:relative;vertical-align:middle}.sd-file-picker__text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;font-size:12px;line-height:20px;color:#aaaaaa}.sd-file-picker__text--active{color:#222222}.sd-file-picker__text--placeholder{color:#aaaaaa}.sd-file-picker__icon{flex-shrink:0}.sd-file-picker__clear-icon{flex-shrink:0;cursor:pointer;transition:opacity 0.2s ease}.sd-file-picker__clear-icon:hover{opacity:0.7}.sd-file-picker__input{display:none}.sd-file-picker__tooltip{position:absolute;top:calc(100% - 4px);left:50%;transform:translate(-50%);z-index:1000;white-space:nowrap;padding:8px 12px;background:rgba(0, 0, 0, 0.8);color:white;font-size:12px;line-height:18px;border-radius:4px;pointer-events:none}.sd-file-picker:hover:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#f6f6f6}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#ffffff}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled) .sd-file-picker__text{color:#222222}.sd-file-picker--disabled:not(.sd-file-picker--inline){background-color:#eeeeee;border-color:#cccccc}.sd-file-picker--disabled:not(.sd-file-picker--inline) .sd-file-picker__text{color:#888888}.sd-file-picker--inline{border:none;background-color:transparent;padding:0;height:auto}.sd-file-picker--inline .sd-file-picker__text{color:#aaaaaa}.sd-file-picker--inline:hover:not(.sd-file-picker--disabled) .sd-file-picker__text{color:#737373}.sd-file-picker--inline.sd-file-picker--active:not(.sd-file-picker--disabled) .sd-file-picker__text--active{color:#222222}.sd-file-picker--inline.sd-file-picker--disabled .sd-file-picker__text{color:#cccccc}`;
|
|
4421
|
+
|
|
4422
|
+
class SdFilePicker {
|
|
4423
|
+
constructor(hostRef) {
|
|
4424
|
+
registerInstance(this, hostRef);
|
|
4425
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
4426
|
+
}
|
|
4427
|
+
get el() { return getElement(this); }
|
|
4428
|
+
value = null;
|
|
4429
|
+
placeholder = 'Click to upload';
|
|
4430
|
+
disabled = false;
|
|
4431
|
+
inline = false;
|
|
4432
|
+
multiple = false;
|
|
4433
|
+
accept;
|
|
4434
|
+
width;
|
|
4435
|
+
internalValue = null;
|
|
4436
|
+
hovered = false;
|
|
4437
|
+
showTooltip = false;
|
|
4438
|
+
fileInputRef;
|
|
4439
|
+
fileNamesRef;
|
|
4440
|
+
sdChange;
|
|
4441
|
+
valueChanged(newValue) {
|
|
4442
|
+
this.internalValue = newValue;
|
|
4443
|
+
}
|
|
4444
|
+
componentDidLoad() {
|
|
4445
|
+
this.checkOverflow();
|
|
4446
|
+
}
|
|
4447
|
+
componentDidUpdate() {
|
|
4448
|
+
this.checkOverflow();
|
|
4449
|
+
}
|
|
4450
|
+
handleFileChange = (event) => {
|
|
4451
|
+
const input = event.target;
|
|
4452
|
+
const files = input.files;
|
|
4453
|
+
if (!files || files.length === 0) {
|
|
4454
|
+
return;
|
|
4455
|
+
}
|
|
4456
|
+
const fileArray = Array.from(files);
|
|
4457
|
+
if (this.multiple) {
|
|
4458
|
+
this.internalValue = fileArray;
|
|
4459
|
+
}
|
|
4460
|
+
else {
|
|
4461
|
+
this.internalValue = fileArray[0];
|
|
4462
|
+
}
|
|
4463
|
+
this.value = this.internalValue;
|
|
4464
|
+
this.sdChange?.emit(this.value);
|
|
4465
|
+
};
|
|
4466
|
+
handleClear = (event) => {
|
|
4467
|
+
event.stopPropagation();
|
|
4468
|
+
const clearedValue = this.multiple ? [] : null;
|
|
4469
|
+
this.value = clearedValue;
|
|
4470
|
+
this.internalValue = clearedValue;
|
|
4471
|
+
this.sdChange?.emit(clearedValue);
|
|
4472
|
+
if (this.fileInputRef) {
|
|
4473
|
+
this.fileInputRef.value = '';
|
|
4474
|
+
}
|
|
4475
|
+
};
|
|
4476
|
+
handleClick = () => {
|
|
4477
|
+
if (this.disabled)
|
|
4478
|
+
return;
|
|
4479
|
+
this.fileInputRef?.click();
|
|
4480
|
+
};
|
|
4481
|
+
getStatusClass() {
|
|
4482
|
+
if (this.disabled)
|
|
4483
|
+
return 'sd-file-picker--disabled';
|
|
4484
|
+
if (this.hasFiles())
|
|
4485
|
+
return 'sd-file-picker--active';
|
|
4486
|
+
return '';
|
|
4487
|
+
}
|
|
4488
|
+
hasFiles() {
|
|
4489
|
+
if (!this.internalValue)
|
|
4490
|
+
return false;
|
|
4491
|
+
if (Array.isArray(this.internalValue)) {
|
|
4492
|
+
return this.internalValue.length > 0;
|
|
4493
|
+
}
|
|
4494
|
+
return true;
|
|
4495
|
+
}
|
|
4496
|
+
getDisplayText() {
|
|
4497
|
+
if (!this.hasFiles())
|
|
4498
|
+
return this.placeholder;
|
|
4499
|
+
if (Array.isArray(this.internalValue)) {
|
|
4500
|
+
return this.internalValue.map(f => f.name).join(', ');
|
|
4501
|
+
}
|
|
4502
|
+
return this.internalValue?.name || this.placeholder;
|
|
4503
|
+
}
|
|
4504
|
+
checkOverflow() {
|
|
4505
|
+
if (!this.fileNamesRef)
|
|
4506
|
+
return;
|
|
4507
|
+
const isOverflowing = this.fileNamesRef.scrollWidth > this.fileNamesRef.clientWidth;
|
|
4508
|
+
this.showTooltip = isOverflowing;
|
|
4509
|
+
}
|
|
4510
|
+
getIconColor() {
|
|
4511
|
+
if (this.disabled) {
|
|
4512
|
+
return this.inline ? 'grey_45' : 'grey_55';
|
|
4513
|
+
}
|
|
4514
|
+
return 'grey_70';
|
|
4515
|
+
}
|
|
4516
|
+
render() {
|
|
4517
|
+
const hasFiles = this.hasFiles();
|
|
4518
|
+
const displayText = this.getDisplayText();
|
|
4519
|
+
return (hAsync("div", { key: 'bfa4054517dcf1ef728a2354927bc40c177274ce', class: {
|
|
4520
|
+
'sd-file-picker': true,
|
|
4521
|
+
[this.getStatusClass()]: true,
|
|
4522
|
+
'sd-file-picker--inline': this.inline,
|
|
4523
|
+
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("input", { key: 'b2f2e730b30c58641615d1216633ee20a67ee6c1', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange }), hAsync("sd-icon", { key: '08b4bbcc3bb757a7a8e3dee3a416b202c7e86f66', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), hAsync("div", { key: 'cba9e6fb17a6a9c5de479e0ccdc6a3de7c23a615', ref: el => (this.fileNamesRef = el), class: {
|
|
4524
|
+
'sd-file-picker__text': true,
|
|
4525
|
+
'sd-file-picker__text--placeholder': !hasFiles,
|
|
4526
|
+
'sd-file-picker__text--active': hasFiles,
|
|
4527
|
+
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-icon", { key: 'eb3c02cb001168d82eac1a3e2855e1cfcc6b960e', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (hAsync("div", { key: '8f09fe54f7f77453eac07f60942401d83955fc0b', class: "sd-file-picker__tooltip" }, displayText))));
|
|
4528
|
+
}
|
|
4529
|
+
static get watchers() { return {
|
|
4530
|
+
"value": ["valueChanged"]
|
|
4531
|
+
}; }
|
|
4532
|
+
static get style() { return sdFilePickerCss(); }
|
|
4533
|
+
static get cmpMeta() { return {
|
|
4534
|
+
"$flags$": 768,
|
|
4535
|
+
"$tagName$": "sd-file-picker",
|
|
4536
|
+
"$members$": {
|
|
4537
|
+
"value": [1040],
|
|
4538
|
+
"placeholder": [1],
|
|
4539
|
+
"disabled": [4],
|
|
4540
|
+
"inline": [4],
|
|
4541
|
+
"multiple": [4],
|
|
4542
|
+
"accept": [1],
|
|
4543
|
+
"width": [8],
|
|
4544
|
+
"internalValue": [32],
|
|
4545
|
+
"hovered": [32],
|
|
4546
|
+
"showTooltip": [32]
|
|
4547
|
+
},
|
|
4548
|
+
"$listeners$": undefined,
|
|
4549
|
+
"$lazyBundleId$": "-",
|
|
4550
|
+
"$attrsToReflect$": []
|
|
4551
|
+
}; }
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
const sdGuideCss = () => `@charset "UTF-8";sd-button{display:inline-block;width:fit-content;height:fit-content}.sd-button{text-decoration:none;cursor:pointer;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}.sd-button--xs{padding:0 8px;font-size:12px;font-weight:500;line-height:20px;min-height:24px}.sd-button--sm{padding:0 12px;font-size:12px;font-weight:500;line-height:20px;min-height:28px}.sd-button--md{padding:0 20px;font-size:16px;font-weight:500;line-height:26px;min-height:34px}.sd-button--lg{padding:0 28px;font-size:18px;font-weight:500;line-height:30px;min-height:62px}.sd-button--primary{background-color:var(--button-color);color:white;transition:filter 0.2s ease}.sd-button--primary::before{content:"";position:absolute;inset:0;background:#000000;opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--primary:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.25}.sd-button--outline{background:white;border:1px solid var(--button-color);color:var(--button-color)}.sd-button--outline::before{content:"";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--outline:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--outline .sd-button__content{position:relative;z-index:1}.sd-button--ghost{background-color:transparent;color:var(--button-color);border-color:transparent}.sd-button--ghost::before{content:"";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--ghost:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--ghost .sd-button__content{position:relative;z-index:1}.sd-button--disabled{border:1px solid #cccccc;background:#e1e1e1;color:#888888;cursor:not-allowed !important}.sd-button--icon-only{padding:0;width:fit-content;height:fit-content;aspect-ratio:1/1}.sd-button--no-hover:hover::before{opacity:0 !important}.sd-button .sd-button__content{display:inline-flex;align-items:center;justify-content:center;gap:4px;z-index:1;font-weight:500}sd-guide{display:inline-block;height:fit-content}sd-guide .sd-guide{display:inline-block}sd-guide .sd-guide .sd-button{padding:0 16px 0 12px;border-radius:16px;color:#333333 !important;display:flex;align-items:center;transition:none}sd-guide .sd-guide .sd-button .sd-button__content{color:#333333 !important}sd-guide .sd-guide .sd-button .sd-button__content .sd-button__label{color:#333333 !important;margin-left:4px}sd-guide .sd-guide--active .sd-button{border:1px solid #12b553}sd-guide .sd-guide--active .sd-button .sd-button__content .sd-button__label{color:white !important}.sd-guide__popup{position:relative;padding:20px 32px;border-radius:8px;box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.1);background:white}.sd-guide__popup>.sd-guide__popup__close{position:absolute;top:12px;right:12px}.sd-guide__popup__header{display:flex;align-items:center;gap:8px;margin-bottom:12px}.sd-guide__popup__header .sd-guide__popup__title{margin-top:0;font-size:16px;font-weight:700;line-height:26px;color:#333333}.sd-guide__popup__list{width:100%;padding:0;margin:0}.sd-guide__popup__list__item{display:flex;width:100%;align-items:start;list-style:none;color:#333333;font-size:12px;font-weight:400}.sd-guide__popup__list__item p{width:100%;padding:0;margin:0;word-wrap:break-word;word-break:break-word;white-space:normal;overflow-wrap:break-word;min-width:0}.sd-guide__popup__list__item::before{display:block;content:"-";width:6px;color:#333333;font-size:12px;font-weight:400;margin-left:10px;margin-right:12px;flex-shrink:0}.sd-guide__popup__list__item--depth-2::before{content:"•"}.sd-guide__popup__list__item--depth-2{padding-left:26px}`;
|
|
4318
4555
|
|
|
4319
4556
|
const GUIDE_LABEL = {
|
|
4320
4557
|
help: '활용 TIP',
|
|
@@ -4367,11 +4604,11 @@ class SdGuide {
|
|
|
4367
4604
|
};
|
|
4368
4605
|
render() {
|
|
4369
4606
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
4370
|
-
return (hAsync(Host, { key: '
|
|
4607
|
+
return (hAsync(Host, { key: 'c15218a6d9dbef0147701e31f798a3e6fa8e7679', style: {
|
|
4371
4608
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
4372
|
-
} }, hAsync("sd-button", { key: '
|
|
4609
|
+
} }, hAsync("sd-button", { key: '773093b74b917d9e15a8e8c280aaa7564832abe1', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (hAsync("sd-portal", { key: '64cfb5c8b425b0d48a9f9954b203c9b3883fb1f3', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: 'f748907b385a77490ad79f8f811ad7fc4eaee8bb', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, hAsync("sd-button", { key: '8b154c2d239fc7038cb939f826417e5b68043a85', class: "sd-guide__popup__close", icon: "close", color: colors$1.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
4373
4610
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
4374
|
-
onSdClick: this.closeDropdown }), hAsync("div", { key: '
|
|
4611
|
+
onSdClick: this.closeDropdown }), hAsync("div", { key: 'eaa2160d01bbe8172fc176117b8e506e469c5dde', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: '54436229beee740efc607c3c2dd7be4c390e3285', name: "helpOutline", size: 24, color: colors$1.green_65 }), hAsync("h3", { key: 'e848c736bb5d49221feb194ecd43e904d51c82f8', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), hAsync("ul", { key: '57536a93be487239c30d7338f48c87ab57fbb3d0', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
4375
4612
|
}
|
|
4376
4613
|
// 현재 2depth까지만 스타일 적용
|
|
4377
4614
|
renderListItem(message, depth = 0) {
|
|
@@ -4389,7 +4626,7 @@ class SdGuide {
|
|
|
4389
4626
|
const listContent = message.replace(/ /gi, ' ');
|
|
4390
4627
|
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: listContent })));
|
|
4391
4628
|
};
|
|
4392
|
-
static get style() { return sdGuideCss; }
|
|
4629
|
+
static get style() { return sdGuideCss(); }
|
|
4393
4630
|
static get cmpMeta() { return {
|
|
4394
4631
|
"$flags$": 768,
|
|
4395
4632
|
"$tagName$": "sd-guide",
|
|
@@ -6388,7 +6625,7 @@ const Icons = {
|
|
|
6388
6625
|
...Youtube,
|
|
6389
6626
|
};
|
|
6390
6627
|
|
|
6391
|
-
const sdIconCss =
|
|
6628
|
+
const sdIconCss = () => `sd-icon{display:inline-block;line-height:0}sd-icon .sd-icon--rotate-90{transform:rotate(90deg)}sd-icon .sd-icon--rotate-180{transform:rotate(180deg)}sd-icon .sd-icon--rotate-270{transform:rotate(270deg)}`;
|
|
6392
6629
|
|
|
6393
6630
|
class SdIcon {
|
|
6394
6631
|
constructor(hostRef) {
|
|
@@ -6417,9 +6654,9 @@ class SdIcon {
|
|
|
6417
6654
|
}
|
|
6418
6655
|
render() {
|
|
6419
6656
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
6420
|
-
return (hAsync("i", { key: '
|
|
6657
|
+
return (hAsync("i", { key: 'f3ff9d0b1134a67b6f8897ede7b4cd449589d618', class: this.getIconClasses(), style: this.iconStyle }, hAsync(IconComponent, { key: '0acd90f22d7f2e3e875b690d41dbb4a297b42d7f', color: this.resolvedColor })));
|
|
6421
6658
|
}
|
|
6422
|
-
static get style() { return sdIconCss; }
|
|
6659
|
+
static get style() { return sdIconCss(); }
|
|
6423
6660
|
static get cmpMeta() { return {
|
|
6424
6661
|
"$flags$": 768,
|
|
6425
6662
|
"$tagName$": "sd-icon",
|
|
@@ -6437,7 +6674,7 @@ class SdIcon {
|
|
|
6437
6674
|
}; }
|
|
6438
6675
|
}
|
|
6439
6676
|
|
|
6440
|
-
const sdInputCss =
|
|
6677
|
+
const sdInputCss = () => `sd-icon{display:inline-block;line-height:0}sd-icon .sd-icon--rotate-90{transform:rotate(90deg)}sd-icon .sd-icon--rotate-180{transform:rotate(180deg)}sd-icon .sd-icon--rotate-270{transform:rotate(270deg)}.sd-input{display:flex;width:var(--input-width, 100%);align-items:center;height:28px;padding:4px 8px;border:1px solid #aaaaaa;border-radius:4px;color:#333333;font-size:12px;line-height:20px;background:white}.sd-input--hovered,.sd-input--focused{border-color:#0075ff;box-shadow:0 0 4px 0 rgba(0, 113, 255, 0.4)}.sd-input.sd-input--error{border-color:#fb4444}.sd-input.sd-input--pass{border-color:#2bce6c}.sd-input.sd-input--barcode:not(.sd-input--disabled){background-color:#fafaa1}.sd-input.sd-input--disabled{background-color:#eeeeee !important;border-color:#cccccc !important;cursor:not-allowed !important;box-shadow:none !important}.sd-input.sd-input--disabled .sd-input__native_element{color:#888888 !important}.sd-input .sd-input__native_element{display:block;width:100%;height:20px;line-height:20px;border:none;outline:none;background:transparent;font-size:inherit;color:#333333;margin-left:4px;margin-right:4px;padding-block:0;padding-inline:0}.sd-input .sd-input__native_element::placeholder{font-size:12px;height:20px;line-height:20px;color:#aaaaaa}.sd-input .sd-input__clear-icon{cursor:pointer;margin-left:8px}`;
|
|
6441
6678
|
|
|
6442
6679
|
class SdInput {
|
|
6443
6680
|
constructor(hostRef) {
|
|
@@ -6537,11 +6774,11 @@ class SdInput {
|
|
|
6537
6774
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
6538
6775
|
}
|
|
6539
6776
|
: {};
|
|
6540
|
-
return (hAsync(Host, { key: '
|
|
6777
|
+
return (hAsync(Host, { key: '265fb05d7c005cd843443475d74c2e8127e4ae2d', style: inputWidth }, this.label && hAsync("div", { key: '2ce6d2611927ec3e491122b8a17b94a2b39edcd5', class: "sd-input__label" }, this.label), hAsync("label", { key: '6731592e7d55098daf4aa8b8177233897daf2900', class: {
|
|
6541
6778
|
'sd-input': true,
|
|
6542
6779
|
[this.getInputStatus()]: true,
|
|
6543
6780
|
'sd-input--barcode': !!this.barcode,
|
|
6544
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: '
|
|
6781
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: 'e07590e1ee2540183c18aceb8dae0ff39d5adca4', name: "prefix" }), hAsync("input", { key: '76b8bbba1030cbef5b57e3303b6cd300858c4fee', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), hAsync("slot", { key: 'e10dc614a0283bc63bb3e44bd627f7279728dae6', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-icon", { key: '3324d72d1353231209aa9c284425c921bbb1e17b', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
6545
6782
|
this.internalValue = '';
|
|
6546
6783
|
this.sdChange?.emit(this.internalValue);
|
|
6547
6784
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -6551,7 +6788,7 @@ class SdInput {
|
|
|
6551
6788
|
"value": ["valueChanged"],
|
|
6552
6789
|
"internalValue": ["internalValueChanged"]
|
|
6553
6790
|
}; }
|
|
6554
|
-
static get style() { return sdInputCss; }
|
|
6791
|
+
static get style() { return sdInputCss(); }
|
|
6555
6792
|
static get cmpMeta() { return {
|
|
6556
6793
|
"$flags$": 772,
|
|
6557
6794
|
"$tagName$": "sd-input",
|
|
@@ -6581,16 +6818,16 @@ class SdInput {
|
|
|
6581
6818
|
}; }
|
|
6582
6819
|
}
|
|
6583
6820
|
|
|
6584
|
-
const sdLoadingSpinnerCss =
|
|
6821
|
+
const sdLoadingSpinnerCss = () => `sd-loading-spinner{display:block}sd-loading-spinner .sd-loading-spinner{animation:sd-loading-spin 2s linear infinite;transform-origin:center center}sd-loading-spinner .sd-loading-spinner .path{animation:sd-loading-spin-path 1.5s ease-in-out infinite}@keyframes sd-loading-spin{0%{transform:rotate3d(0, 0, 1, 0deg)}25%{transform:rotate3d(0, 0, 1, 90deg)}50%{transform:rotate3d(0, 0, 1, 180deg)}75%{transform:rotate3d(0, 0, 1, 270deg)}100%{transform:rotate3d(0, 0, 1, 359deg)}}@keyframes sd-loading-spin-path{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}`;
|
|
6585
6822
|
|
|
6586
6823
|
class SdLoadingSpinner {
|
|
6587
6824
|
constructor(hostRef) {
|
|
6588
6825
|
registerInstance(this, hostRef);
|
|
6589
6826
|
}
|
|
6590
6827
|
render() {
|
|
6591
|
-
return (hAsync(Host, { key: '
|
|
6828
|
+
return (hAsync(Host, { key: 'f8c61aa1c1f500da0aa9deac8d031306427bddb4' }, hAsync("svg", { key: '66b9d93ed53b1539f4ba51cf7ca0350728ed343c', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, hAsync("circle", { key: '3e6e687a243ec457065e14ac44bb56706c89bb10', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
6592
6829
|
}
|
|
6593
|
-
static get style() { return sdLoadingSpinnerCss; }
|
|
6830
|
+
static get style() { return sdLoadingSpinnerCss(); }
|
|
6594
6831
|
static get cmpMeta() { return {
|
|
6595
6832
|
"$flags$": 256,
|
|
6596
6833
|
"$tagName$": "sd-loading-spinner",
|
|
@@ -6601,7 +6838,7 @@ class SdLoadingSpinner {
|
|
|
6601
6838
|
}; }
|
|
6602
6839
|
}
|
|
6603
6840
|
|
|
6604
|
-
const sdModalCardCss =
|
|
6841
|
+
const sdModalCardCss = () => `sd-modal-card{display:block}sd-modal-card .sd-modal-card{position:relative;padding:40px 32px;border-radius:8px;box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2)}sd-modal-card .sd-modal-card__close-button{position:absolute;top:16px;right:16px;cursor:pointer}sd-modal-card .sd-modal-card sd-icon.sd-modal-card__icon{display:block;width:32px;height:32px;margin:0 auto 12px auto}sd-modal-card .sd-modal-card__title{color:var(--point-color);font-size:18px;font-weight:700;line-height:30px;text-align:center;margin:0 0 20px 0}sd-modal-card .sd-modal-card__message{color:#222222;font-weight:400;font-size:12px;line-height:22px;text-align:center;margin:0}sd-modal-card .sd-modal-card__button-container{display:flex;margin:32px auto 0 auto;justify-content:center;align-items:center;gap:8px}sd-modal-card .sd-modal-card__button-container.flex-column{flex-direction:column}sd-modal-card .sd-modal-card__button-container button.sd-modal-card__button{width:89px}`;
|
|
6605
6842
|
|
|
6606
6843
|
class SdModalCard {
|
|
6607
6844
|
constructor(hostRef) {
|
|
@@ -6646,7 +6883,7 @@ class SdModalCard {
|
|
|
6646
6883
|
render() {
|
|
6647
6884
|
return (hAsync(Host, { key: 'a7b84787e02fd73d3df5af58011b92bd70bf5418', style: { '--point-color': this.pointColor } }, hAsync("div", { key: 'ee1e08e2dca1c4192bbdf21cba148a1ad72459e1', class: this.getModalClass }, this.useCloseButton && (hAsync("sd-icon", { key: 'ec9aad87db22a57f01326db6fac695eb2d4617ad', class: "sd-modal-card__close-button", name: "close", size: "20", color: "grey_65", onClick: () => this.sdClose.emit() })), this.type !== 'normal' && (hAsync("sd-icon", { key: 'ccf36cbb5ef0a793d422cee2312d338436bd6d61', class: "sd-modal-card__icon", name: this.type === 'info' ? 'notificationOutline' : 'warningOutline', size: "32", color: this.type === 'info' ? 'brilliantblue_75' : 'red_75' })), hAsync("h2", { key: '9d1e9f949bc75697960d2c44667f7cad52d976c4', class: "sd-modal-card__title" }, this.modalTitle), hAsync("slot", { key: 'f2b75146e58d78ac8431a1549068e9a219be4506' }, hAsync("div", { key: '75d035874b34f388c3c6acb60f4a90dae46ff7e6', class: `sd-modal-card__message-container` }, this.message.map(msg => (hAsync("p", { class: "sd-modal-card__message" }, msg))))), hAsync("div", { key: '39f99159776d7c107b2b3410e5681a67766b2ce8', class: `sd-modal-card__button-container flex-${this.buttonFlexDirection}` }, this.buttonProps.map(button => (hAsync("sd-button", { class: 'sd-modal-card__button', variant: button.variant ? button.variant : 'outline', label: button.label, color: button.color, size: button.size, onClick: () => !button.type || button.type === 'confirm' ? this.sdConfirm.emit() : this.sdClose.emit(), ...(button.class && { class: button.class }) })))))));
|
|
6648
6885
|
}
|
|
6649
|
-
static get style() { return sdModalCardCss; }
|
|
6886
|
+
static get style() { return sdModalCardCss(); }
|
|
6650
6887
|
static get cmpMeta() { return {
|
|
6651
6888
|
"$flags$": 772,
|
|
6652
6889
|
"$tagName$": "sd-modal-card",
|
|
@@ -6666,7 +6903,7 @@ class SdModalCard {
|
|
|
6666
6903
|
}; }
|
|
6667
6904
|
}
|
|
6668
6905
|
|
|
6669
|
-
const sdPaginationCss =
|
|
6906
|
+
const sdPaginationCss = () => `.sd-pagination{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:8px;color:#555555;width:100%;font-size:12px}.sd-pagination .prepend-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .prepend-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .prepend-btns button:hover{border:1px solid #006ac1;border-radius:14px}.sd-pagination .append-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .append-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .append-btns button:hover{border:1px solid #006ac1;border-radius:14px}.sd-pagination .pagination-btn{display:flex;align-items:center;justify-content:center;border-radius:14px;outline:none;border:none;cursor:pointer;height:26px;color:#555555;width:var(--pagination-btn-width, 26px)}.sd-pagination .pagination-btn--selected{background-color:#006ac1;color:white}.sd-pagination .pagination-btn:hover{border:1px solid #006ac1}.sd-pagination--simple .pagination-info{line-height:26px;display:flex;flex-flow:row nowrap;align-items:center;gap:8px}.sd-pagination--simple .pagination-info .current-page,.sd-pagination--simple .pagination-info .last-page{padding:0 2px}`;
|
|
6670
6907
|
|
|
6671
6908
|
const BUTTON_WIDTH = {
|
|
6672
6909
|
1: 26,
|
|
@@ -6740,14 +6977,14 @@ class SdPagination {
|
|
|
6740
6977
|
}
|
|
6741
6978
|
}
|
|
6742
6979
|
render() {
|
|
6743
|
-
return (hAsync("div", { key: '
|
|
6980
|
+
return (hAsync("div", { key: '6b743779100f7835b29da728d642ced495b11116', class: this.paginationClasses }, hAsync("div", { key: '34be0cf1db6cc55f761b32fa9e4f9bee236933f6', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
6744
6981
|
'pagination-btn': true,
|
|
6745
6982
|
'pagination-btn--selected': this.currentPage === n,
|
|
6746
6983
|
}, disabled: this.currentPage === n, style: {
|
|
6747
6984
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
6748
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
6985
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '108017450555fb73c74c71cc7605ef8af5679a20', class: "append-btns" }, this.renderNextButtons())));
|
|
6749
6986
|
}
|
|
6750
|
-
static get style() { return sdPaginationCss; }
|
|
6987
|
+
static get style() { return sdPaginationCss(); }
|
|
6751
6988
|
static get cmpMeta() { return {
|
|
6752
6989
|
"$flags$": 768,
|
|
6753
6990
|
"$tagName$": "sd-pagination",
|
|
@@ -6764,7 +7001,7 @@ class SdPagination {
|
|
|
6764
7001
|
|
|
6765
7002
|
const TooltipArrow = (props) => (hAsync("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, hAsync("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
6766
7003
|
|
|
6767
|
-
const sdPopoverCss =
|
|
7004
|
+
const sdPopoverCss = () => `.sd-popover{position:relative;cursor:pointer;display:inline-block}`;
|
|
6768
7005
|
|
|
6769
7006
|
class SdPopover {
|
|
6770
7007
|
constructor(hostRef) {
|
|
@@ -6799,16 +7036,16 @@ class SdPopover {
|
|
|
6799
7036
|
this.showPopover = false;
|
|
6800
7037
|
};
|
|
6801
7038
|
render() {
|
|
6802
|
-
return (hAsync(Fragment, { key: '
|
|
7039
|
+
return (hAsync(Fragment, { key: 'fa06f3ff6641006a75c3ed0912f8f2dc6ca2da56' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (hAsync("sd-tooltip-portal", { key: 'f433e3bc5e325bf9d70fae10b6777fe77e52061f', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: '7fa463878475d3c2ce86d006912c35b585d7bed0', class: {
|
|
6803
7040
|
'sd-popover-menu': true,
|
|
6804
7041
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
6805
7042
|
[this.menuClass]: !!this.menuClass,
|
|
6806
|
-
} }, hAsync("i", { key: '
|
|
7043
|
+
} }, hAsync("i", { key: '90a23aea2730ec9dbc2b9ca77ef0a4ef13777006', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '9246c25e04ea2dd6716e20ac01060ff7acc23fa9' })), hAsync("div", { key: 'dd6f350fbb5f5a49302593b3c24faf6bf59bb9ec', class: "sd-popover-menu__content" }, this.menuTitle && hAsync("div", { key: 'c9aae4e0eaa0e1ab4f1447907f2dbe0e6e988bbf', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '2ed497a7d543f4638756524b4062c9df57b20aa0', class: "sd-popover-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: '5ddf4ec18128bc58c77a3017fc1a621591adb67b', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: 'e7bbb527601bda49a4d4e5c28a555acb5714bd5b', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '0e0ec3542195f3eb6955ef68ab82d947460271d3', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
6807
7044
|
}
|
|
6808
7045
|
static get watchers() { return {
|
|
6809
7046
|
"show": ["watchShowHandler"]
|
|
6810
7047
|
}; }
|
|
6811
|
-
static get style() { return sdPopoverCss; }
|
|
7048
|
+
static get style() { return sdPopoverCss(); }
|
|
6812
7049
|
static get cmpMeta() { return {
|
|
6813
7050
|
"$flags$": 777,
|
|
6814
7051
|
"$tagName$": "sd-popover",
|
|
@@ -6954,7 +7191,7 @@ class SdPortal {
|
|
|
6954
7191
|
this.sdClose.emit();
|
|
6955
7192
|
}
|
|
6956
7193
|
render() {
|
|
6957
|
-
return hAsync("slot", { key: '
|
|
7194
|
+
return hAsync("slot", { key: '5995c7edbf0a54b6efb9afa2b5f67f078282acd8' });
|
|
6958
7195
|
}
|
|
6959
7196
|
static get cmpMeta() { return {
|
|
6960
7197
|
"$flags$": 772,
|
|
@@ -6972,7 +7209,7 @@ class SdPortal {
|
|
|
6972
7209
|
}; }
|
|
6973
7210
|
}
|
|
6974
7211
|
|
|
6975
|
-
const sdProgressCss =
|
|
7212
|
+
const sdProgressCss = () => `sd-progress{display:block}sd-progress .sd-progress__bar{position:relative;width:360px;height:20px;overflow:hidden;border-radius:4px;background-color:#eeeeee;text-align:center}sd-progress .sd-progress__bar__percent{width:var(--progress-percentage);height:100%;border-radius:4px;background-color:var(--progress-color, #0075ff);transition:all 0.5s}sd-progress .sd-progress__bar__percent.proceed{border-top-right-radius:50%}sd-progress .sd-progress__bar__indicator{position:absolute;left:0;top:0;height:20px;width:100%;background-color:#eeeeee;line-height:21px;z-index:1}sd-progress .sd-progress__bar__indicator--left{color:var(--progress-color, #0075ff);clip-path:inset(0 0 0 var(--progress-percentage))}sd-progress .sd-progress__bar__indicator--right{color:white;background-color:var(--progress-color, #0075ff);clip-path:inset(0 calc(100% - var(--progress-percentage)) 0 0)}sd-progress .sd-progress__spinner{display:flex;flex-direction:column;align-items:center;justify-content:center}sd-progress .sd-progress__spinner svg{transform:rotate(-90deg)}sd-progress .sd-progress__spinner__label{margin-top:8px;font-size:16px;color:var(--progress-color, #0075ff)}sd-progress .sd-progress__label{margin-top:4px;font-size:12px;color:#222222;text-align:center}`;
|
|
6976
7213
|
|
|
6977
7214
|
class SdProgress {
|
|
6978
7215
|
constructor(hostRef) {
|
|
@@ -6991,10 +7228,10 @@ class SdProgress {
|
|
|
6991
7228
|
error: '#FB4444',
|
|
6992
7229
|
};
|
|
6993
7230
|
render() {
|
|
6994
|
-
return (hAsync(Host, { key: '
|
|
7231
|
+
return (hAsync(Host, { key: 'ecd9801daf4fcb4a3a680286354c436b1423778a', style: {
|
|
6995
7232
|
'--progress-color': this.statusColor[this.status],
|
|
6996
7233
|
'--progress-percentage': `${this.percentage}%`,
|
|
6997
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
7234
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '167d080cefe222ac28d966bbcf0aca4a122c98ea', class: "sd-progress__label" }, this.label)));
|
|
6998
7235
|
}
|
|
6999
7236
|
renderBarProgress() {
|
|
7000
7237
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
@@ -7007,7 +7244,7 @@ class SdProgress {
|
|
|
7007
7244
|
const progressSize = `${this.size / 2}px`;
|
|
7008
7245
|
return (hAsync("div", { class: `sd-progress__spinner sd-progress__spinner--${this.status}` }, hAsync("svg", { width: progressBgSize, height: progressBgSize }, hAsync("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: "#EEEEEE", "stroke-width": this.strokeWidth, fill: "transparent" }), hAsync("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: this.statusColor[this.status], "stroke-width": this.strokeWidth, fill: "transparent", "stroke-dasharray": circumference, "stroke-dashoffset": offset, "stroke-linecap": "round", class: "transition-all duration-500" })), hAsync("strong", { class: "sd-progress__spinner__label" }, this.percentage, " %")));
|
|
7009
7246
|
}
|
|
7010
|
-
static get style() { return sdProgressCss; }
|
|
7247
|
+
static get style() { return sdProgressCss(); }
|
|
7011
7248
|
static get cmpMeta() { return {
|
|
7012
7249
|
"$flags$": 768,
|
|
7013
7250
|
"$tagName$": "sd-progress",
|
|
@@ -7025,7 +7262,87 @@ class SdProgress {
|
|
|
7025
7262
|
}; }
|
|
7026
7263
|
}
|
|
7027
7264
|
|
|
7028
|
-
const
|
|
7265
|
+
const sdRadioButtonGroupCss = () => `sd-radio-button-group{display:inline-block}sd-radio-button-group .sd-radio-button-group{display:flex;flex-direction:row;gap:0}sd-radio-button-group .sd-radio-button-group__option{display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #cccccc;background-color:white;color:#333333;font-weight:400;transition:all 0.2s ease;position:relative;user-select:none}sd-radio-button-group .sd-radio-button-group__option input{display:none}sd-radio-button-group .sd-radio-button-group__option:not(:first-child){margin-left:-1px}sd-radio-button-group .sd-radio-button-group__option:first-child{border-radius:4px 0 0 4px}sd-radio-button-group .sd-radio-button-group__option:last-child{border-radius:0 4px 4px 0}sd-radio-button-group .sd-radio-button-group__option:only-child{border-radius:4px}sd-radio-button-group .sd-radio-button-group__option:not(sd-radio-button-group .sd-radio-button-group__option--disabled):not(sd-radio-button-group .sd-radio-button-group__option--selected):hover{background-color:#0075ff;color:white;font-weight:500;border-color:#0075ff;z-index:2}sd-radio-button-group .sd-radio-button-group__option--selected{border-color:#0075ff;color:#0075ff;background-color:white;z-index:1}sd-radio-button-group .sd-radio-button-group__option--disabled{background-color:#e1e1e1;border-color:#cccccc;color:#888888;cursor:not-allowed}sd-radio-button-group .sd-radio-button-group__option:has(input:disabled){cursor:not-allowed}sd-radio-button-group .sd-radio-button-group__label{user-select:none}sd-radio-button-group .sd-radio-button-group--sm .sd-radio-button-group__option{padding:4px 12px;font-size:12px;line-height:20px}sd-radio-button-group .sd-radio-button-group--md .sd-radio-button-group__option{padding:4px 20px;font-size:16px;line-height:26px}`;
|
|
7266
|
+
|
|
7267
|
+
class SdRadioButtonGroup {
|
|
7268
|
+
constructor(hostRef) {
|
|
7269
|
+
registerInstance(this, hostRef);
|
|
7270
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
7271
|
+
}
|
|
7272
|
+
value;
|
|
7273
|
+
radioOptions = [];
|
|
7274
|
+
size = 'md';
|
|
7275
|
+
disabled = false;
|
|
7276
|
+
name;
|
|
7277
|
+
selectedValue;
|
|
7278
|
+
sdChange;
|
|
7279
|
+
componentWillLoad() {
|
|
7280
|
+
if (this.value !== undefined && this.value !== null) {
|
|
7281
|
+
this.selectedValue = this.value;
|
|
7282
|
+
}
|
|
7283
|
+
}
|
|
7284
|
+
valueChanged(newValue) {
|
|
7285
|
+
this.selectedValue = newValue;
|
|
7286
|
+
}
|
|
7287
|
+
handleRadioChange = (optionValue, optionDisabled) => {
|
|
7288
|
+
if (this.disabled || optionDisabled)
|
|
7289
|
+
return;
|
|
7290
|
+
this.selectedValue = optionValue;
|
|
7291
|
+
this.value = optionValue;
|
|
7292
|
+
this.sdChange.emit(optionValue);
|
|
7293
|
+
};
|
|
7294
|
+
isOptionSelected(option) {
|
|
7295
|
+
return this.selectedValue === option.value;
|
|
7296
|
+
}
|
|
7297
|
+
isOptionDisabled(option) {
|
|
7298
|
+
return this.disabled || !!option.disabled;
|
|
7299
|
+
}
|
|
7300
|
+
getButtonClasses(option) {
|
|
7301
|
+
const classes = [
|
|
7302
|
+
'sd-radio-button-group__option',
|
|
7303
|
+
this.isOptionSelected(option)
|
|
7304
|
+
? 'sd-radio-button-group__option--selected'
|
|
7305
|
+
: 'sd-radio-button-group__option--unselected',
|
|
7306
|
+
];
|
|
7307
|
+
if (this.isOptionDisabled(option)) {
|
|
7308
|
+
classes.push('sd-radio-button-group__option--disabled');
|
|
7309
|
+
}
|
|
7310
|
+
return classes.join(' ');
|
|
7311
|
+
}
|
|
7312
|
+
getGroupClasses() {
|
|
7313
|
+
const classes = ['sd-radio-button-group', `sd-radio-button-group--${this.size}`];
|
|
7314
|
+
return classes.join(' ');
|
|
7315
|
+
}
|
|
7316
|
+
render() {
|
|
7317
|
+
const groupName = this.name || `sd-radio-button-group-${Math.random().toString(36).substring(2, 11)}`;
|
|
7318
|
+
return (hAsync("div", { key: '11b2fa2d7c019ea5d1c535e8f36ac488169e11e9', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map((option, index) => {
|
|
7319
|
+
const isSelected = this.isOptionSelected(option);
|
|
7320
|
+
const isDisabled = this.isOptionDisabled(option);
|
|
7321
|
+
return (hAsync("label", { key: `radio-${index}`, class: this.getButtonClasses(option), role: "radio", "aria-checked": isSelected.toString(), "aria-disabled": isDisabled.toString(), "aria-label": option.label || 'radio option' }, hAsync("input", { type: "radio", name: groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button-group__label" }, option.label)));
|
|
7322
|
+
})));
|
|
7323
|
+
}
|
|
7324
|
+
static get watchers() { return {
|
|
7325
|
+
"value": ["valueChanged"]
|
|
7326
|
+
}; }
|
|
7327
|
+
static get style() { return sdRadioButtonGroupCss(); }
|
|
7328
|
+
static get cmpMeta() { return {
|
|
7329
|
+
"$flags$": 768,
|
|
7330
|
+
"$tagName$": "sd-radio-button-group",
|
|
7331
|
+
"$members$": {
|
|
7332
|
+
"value": [1544],
|
|
7333
|
+
"radioOptions": [1040],
|
|
7334
|
+
"size": [1],
|
|
7335
|
+
"disabled": [4],
|
|
7336
|
+
"name": [1],
|
|
7337
|
+
"selectedValue": [32]
|
|
7338
|
+
},
|
|
7339
|
+
"$listeners$": undefined,
|
|
7340
|
+
"$lazyBundleId$": "-",
|
|
7341
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
7342
|
+
}; }
|
|
7343
|
+
}
|
|
7344
|
+
|
|
7345
|
+
const sdRadioGroupCss = () => `sd-radio-group{display:inline-block}sd-radio-group .sd-radio-group{display:flex}sd-radio-group .sd-radio-group--vertical{flex-direction:column;gap:8px}sd-radio-group .sd-radio-group--horizontal{flex-direction:row;align-items:center;gap:20px}sd-radio-group .sd-radio-group__option{width:fit-content;display:flex;align-items:center;gap:8px;font-weight:400;font-size:12px;line-height:20px;cursor:pointer}sd-radio-group .sd-radio-group__option:has(input:disabled){cursor:default}sd-radio-group .sd-radio-group__option input{position:relative;appearance:none;margin:0;width:16px;height:16px;border:1px solid #888888;border-radius:50%;cursor:pointer;accent-color:#0075ff;background-color:white}sd-radio-group .sd-radio-group__option input:checked{border-color:#0075ff;background-color:white}sd-radio-group .sd-radio-group__option input:checked::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;background-color:#0075ff}sd-radio-group .sd-radio-group__option input:disabled{cursor:default;border-color:#cccccc;background-color:#eeeeee}sd-radio-group .sd-radio-group__option input:disabled:checked::before{background-color:#cccccc}sd-radio-group .sd-radio-group__option input:not(:disabled):hover{border-color:#0075ff;background-color:#d9eaff}sd-radio-group .sd-radio-group__label{font-size:12px;color:#333333;line-height:20px;user-select:none}sd-radio-group .sd-radio-group__option--disabled .sd-radio-group__label{color:#888888}`;
|
|
7029
7346
|
|
|
7030
7347
|
class SdRadioGroup {
|
|
7031
7348
|
constructor(hostRef) {
|
|
@@ -7078,7 +7395,7 @@ class SdRadioGroup {
|
|
|
7078
7395
|
}
|
|
7079
7396
|
render() {
|
|
7080
7397
|
const groupName = this.name || `sd-radio-group-${Math.random().toString(36).substring(2, 11)}`;
|
|
7081
|
-
return (hAsync("div", { key: '
|
|
7398
|
+
return (hAsync("div", { key: '41a5801484b12c0688d34d7225b07ce4ac8073fa', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map((option, index) => {
|
|
7082
7399
|
const isSelected = this.isOptionSelected(option);
|
|
7083
7400
|
const isDisabled = this.isOptionDisabled(option);
|
|
7084
7401
|
return (hAsync("label", { key: `radio-${index}`, class: this.getRadioClasses(option), role: "radio", "aria-checked": isSelected.toString(), "aria-disabled": isDisabled.toString(), "aria-label": option.label || 'radio option' }, hAsync("input", { type: "radio", name: groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-group__label" }, option.label)));
|
|
@@ -7087,7 +7404,7 @@ class SdRadioGroup {
|
|
|
7087
7404
|
static get watchers() { return {
|
|
7088
7405
|
"value": ["valueChanged"]
|
|
7089
7406
|
}; }
|
|
7090
|
-
static get style() { return sdRadioGroupCss; }
|
|
7407
|
+
static get style() { return sdRadioGroupCss(); }
|
|
7091
7408
|
static get cmpMeta() { return {
|
|
7092
7409
|
"$flags$": 768,
|
|
7093
7410
|
"$tagName$": "sd-radio-group",
|
|
@@ -7217,7 +7534,7 @@ class SelectKeyboardNavigation {
|
|
|
7217
7534
|
}
|
|
7218
7535
|
}
|
|
7219
7536
|
|
|
7220
|
-
const sdSelectCss =
|
|
7537
|
+
const sdSelectCss = () => `.sd-select__dropdown{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-select__dropdown::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-select__dropdown::-webkit-scrollbar:horizontal{height:8px}.sd-select__dropdown::-webkit-scrollbar:vertical{width:8px}.sd-select__dropdown::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-select__dropdown::-webkit-scrollbar-track{background-color:transparent}.sd-select{display:flex;width:var(--select-width, 200px);height:28px;position:relative;color:#333333;cursor:pointer;user-select:none;border:1px solid #aaaaaa;border-radius:4px;background-color:white}.sd-select:hover:not(.sd-select--disabled){background:#f6f6f6}.sd-select.sd-select--disabled{cursor:not-allowed;background-color:#eeeeee;border-color:#cccccc}.sd-select.sd-select--disabled .sd-select__label{border-right:1px solid #cccccc}.sd-select.sd-select--disabled .sd-select__trigger{color:#888888}.sd-select.sd-select--disabled .sd-select__trigger:focus,.sd-select.sd-select--disabled .sd-select__trigger:focus-visible,.sd-select.sd-select--disabled .sd-select__trigger:focus-within{outline:none !important}.sd-select__label{font-size:12px;line-height:20px;font-weight:500;color:#333333;padding:4px 12px;border-right:1px solid #cccccc;border-radius:4px 0 0 4px;background-color:#f6f6f6;display:inline-block;white-space:nowrap}.sd-select__container{position:relative;width:100%;display:flex}.sd-select__container .sd-select__trigger{padding:4px 20px 4px 12px;display:flex;width:100%;align-items:center}.sd-select__container .sd-select__trigger .sd-select__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;font-size:12px;font-weight:400;text-align:left}.sd-select__container .sd-select__trigger .sd-select__clear{margin:0 4px;width:8px;height:8px;background-color:transparent;outline:none;border:none}.sd-select__container .sd-select__arrow{position:absolute;top:8px;right:8px;width:12px;height:12px;color:#888888;transition:transform 0.3s ease}.sd-select__container .sd-select__arrow--open{transform:rotate(180deg)}.sd-select__dropdown{width:var(--select-dropdown-width, 200px);max-height:var(--select-dropdown-height, 260px);padding-bottom:2px;background-color:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);border-radius:4px;overflow-y:auto;color:#333333;display:flex;flex-direction:column}.sd-select__dropdown .sd-select__search-container{position:sticky;top:0;display:flex;width:100%;background-color:white;align-items:center;padding:4px 8px}.sd-select__dropdown .sd-select__search-container--scrolled{box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}.sd-select__dropdown .sd-select__option-placeholder{padding:4px 12px;font-size:12px;line-height:20px;text-align:left}`;
|
|
7221
7538
|
|
|
7222
7539
|
class SdSelect extends BaseDropdownEvent {
|
|
7223
7540
|
constructor(hostRef) {
|
|
@@ -7253,6 +7570,9 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7253
7570
|
searchRef;
|
|
7254
7571
|
optionRef;
|
|
7255
7572
|
dropdownRef;
|
|
7573
|
+
async open() {
|
|
7574
|
+
this.isOpen = true;
|
|
7575
|
+
}
|
|
7256
7576
|
valueChanged() {
|
|
7257
7577
|
const selectedOption = this.getSelectedOption();
|
|
7258
7578
|
this.sdChange?.emit({ value: selectedOption?.value || null, option: selectedOption || null });
|
|
@@ -7268,7 +7588,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7268
7588
|
if (this.searchable) {
|
|
7269
7589
|
const searchInput = await this.getNativeInputElement();
|
|
7270
7590
|
if (this.itemIndex === -1) {
|
|
7271
|
-
searchInput?.focus();
|
|
7591
|
+
searchInput?.focus({ preventScroll: true });
|
|
7272
7592
|
return;
|
|
7273
7593
|
}
|
|
7274
7594
|
else if (searchInput?.matches(':focus')) {
|
|
@@ -7313,7 +7633,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7313
7633
|
const currentItem = optionElements?.[this.itemIndex];
|
|
7314
7634
|
if (this.searchable) {
|
|
7315
7635
|
const searchInput = await this.getNativeInputElement();
|
|
7316
|
-
searchInput?.focus();
|
|
7636
|
+
searchInput?.focus({ preventScroll: true });
|
|
7317
7637
|
}
|
|
7318
7638
|
if (!currentItem)
|
|
7319
7639
|
return;
|
|
@@ -7421,11 +7741,11 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7421
7741
|
'--select-width': this.width || '200px',
|
|
7422
7742
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7423
7743
|
};
|
|
7424
|
-
return (hAsync(Host, { key: '
|
|
7744
|
+
return (hAsync(Host, { key: 'ba065b311487ea934dc46736fd633d4d1a13f2e4', style: style }, hAsync("div", { key: '904d988d274e7827d5c969ba45643648ba0a61b3', class: {
|
|
7425
7745
|
'sd-select': true,
|
|
7426
7746
|
'sd-select--open': this.isOpen,
|
|
7427
7747
|
'sd-select--disabled': this.disabled,
|
|
7428
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
7748
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '66fe35a68fa18cf97b4db110572f86faefa59207', class: "sd-select__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7429
7749
|
}
|
|
7430
7750
|
renderLabel(label) {
|
|
7431
7751
|
if (!label)
|
|
@@ -7462,7 +7782,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7462
7782
|
"itemIndex": ["itemIndexChanged"],
|
|
7463
7783
|
"isOpen": ["isOpenChanged"]
|
|
7464
7784
|
}; }
|
|
7465
|
-
static get style() { return sdSelectCss; }
|
|
7785
|
+
static get style() { return sdSelectCss(); }
|
|
7466
7786
|
static get cmpMeta() { return {
|
|
7467
7787
|
"$flags$": 772,
|
|
7468
7788
|
"$tagName$": "sd-select",
|
|
@@ -7482,7 +7802,8 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7482
7802
|
"isOpen": [32],
|
|
7483
7803
|
"searchText": [32],
|
|
7484
7804
|
"itemIndex": [32],
|
|
7485
|
-
"isScrolled": [32]
|
|
7805
|
+
"isScrolled": [32],
|
|
7806
|
+
"open": [64]
|
|
7486
7807
|
},
|
|
7487
7808
|
"$listeners$": undefined,
|
|
7488
7809
|
"$lazyBundleId$": "-",
|
|
@@ -7490,7 +7811,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7490
7811
|
}; }
|
|
7491
7812
|
}
|
|
7492
7813
|
|
|
7493
|
-
const sdSelectMultipleCss =
|
|
7814
|
+
const sdSelectMultipleCss = () => `.sd-select-multiple__dropdown{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-select-multiple__dropdown::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-select-multiple__dropdown::-webkit-scrollbar:horizontal{height:8px}.sd-select-multiple__dropdown::-webkit-scrollbar:vertical{width:8px}.sd-select-multiple__dropdown::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-select-multiple__dropdown::-webkit-scrollbar-track{background-color:transparent}:host{display:inline-block;height:fit-content;position:relative}.sd-select-multiple{display:flex;flex-wrap:nowrap;width:var(--select-width, 200px);height:28px;cursor:pointer;user-select:none;border:1px solid #aaaaaa;border-radius:4px;background-color:white}.sd-select-multiple:hover:not(.sd-select-multiple--disabled){background:#f6f6f6}.sd-select-multiple.sd-select-multiple--disabled{cursor:not-allowed;background-color:#eeeeee;border-color:#cccccc}.sd-select-multiple.sd-select-multiple--disabled .sd-select-multiple__label{border-right:1px solid #cccccc}.sd-select-multiple.sd-select-multiple--disabled .sd-select-multiple__trigger{color:#888888}.sd-select-multiple.sd-select-multiple--disabled .sd-select-multiple__trigger:focus,.sd-select-multiple.sd-select-multiple--disabled .sd-select-multiple__trigger:focus-visible,.sd-select-multiple.sd-select-multiple--disabled .sd-select-multiple__trigger:focus-within{outline:none !important}.sd-select-multiple__label{font-size:12px;font-weight:500;color:#333333;padding:4px 12px;border-right:1px solid #cccccc;border-radius:4px 0 0 4px;background-color:#f6f6f6}.sd-select-multiple__container{position:relative;width:100%;display:flex}.sd-select-multiple__container .sd-select-multiple__trigger{padding:4px 20px 4px 12px;display:flex;width:100%;align-items:center}.sd-select-multiple__container .sd-select-multiple__trigger .sd-select-multiple__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;font-size:12px;font-weight:400}.sd-select-multiple__container .sd-select-multiple__trigger .sd-select-multiple__clear{margin:0 4px;width:8px;height:8px;background-color:transparent;outline:none;border:none}.sd-select-multiple__container .sd-select-multiple__arrow{position:absolute;top:8px;right:8px;width:12px;height:12px;color:#888888;transition:transform 0.3s ease}.sd-select-multiple__container .sd-select-multiple__arrow--open{transform:rotate(180deg)}.sd-select-multiple__dropdown{width:var(--select-dropdown-width, 200px);max-height:var(--select-dropdown-height, 260px);padding-bottom:2px;background-color:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);border-radius:4px;overflow-y:auto;color:#333333}.sd-select-multiple__dropdown .sd-select-multiple__search-container{position:sticky;top:0;display:flex;width:100%;background-color:white;align-items:center;padding:4px 8px;z-index:1}.sd-select-multiple__dropdown .sd-select-multiple__search-container--scrolled{box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}.sd-select-multiple__dropdown .sd-select-multiple__option-placeholder{padding:4px 12px;font-size:12px;line-height:20px;text-align:left}`;
|
|
7494
7815
|
|
|
7495
7816
|
class SdSelectMultiple extends BaseDropdownEvent {
|
|
7496
7817
|
constructor(hostRef) {
|
|
@@ -7527,6 +7848,9 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7527
7848
|
searchRef;
|
|
7528
7849
|
optionRef;
|
|
7529
7850
|
dropdownRef;
|
|
7851
|
+
async open() {
|
|
7852
|
+
this.isOpen = true;
|
|
7853
|
+
}
|
|
7530
7854
|
valueChanged() {
|
|
7531
7855
|
this.sdChange?.emit(this.value);
|
|
7532
7856
|
}
|
|
@@ -7702,11 +8026,11 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7702
8026
|
'--select-width': this.width || '200px',
|
|
7703
8027
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7704
8028
|
};
|
|
7705
|
-
return (hAsync(Host, { key: '
|
|
8029
|
+
return (hAsync(Host, { key: '24d4287067a9706099a20c46abee2d25a8271c1c', style: style }, hAsync("div", { key: '8b6f63ea974841ded9607c592d2c866a32bdccdf', class: {
|
|
7706
8030
|
'sd-select-multiple': true,
|
|
7707
8031
|
'sd-select-multiple--open': this.isOpen,
|
|
7708
8032
|
'sd-select-multiple--disabled': this.disabled,
|
|
7709
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
8033
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '2d35e79a95e5cd2ec8b055ca4d7a38e70ac13936', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7710
8034
|
}
|
|
7711
8035
|
renderLabel(label) {
|
|
7712
8036
|
if (!label)
|
|
@@ -7743,7 +8067,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7743
8067
|
"itemIndex": ["itemIndexChanged"],
|
|
7744
8068
|
"isOpen": ["isOpenChanged"]
|
|
7745
8069
|
}; }
|
|
7746
|
-
static get style() { return sdSelectMultipleCss; }
|
|
8070
|
+
static get style() { return sdSelectMultipleCss(); }
|
|
7747
8071
|
static get cmpMeta() { return {
|
|
7748
8072
|
"$flags$": 772,
|
|
7749
8073
|
"$tagName$": "sd-select-multiple",
|
|
@@ -7764,7 +8088,8 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7764
8088
|
"isOpen": [32],
|
|
7765
8089
|
"searchText": [32],
|
|
7766
8090
|
"itemIndex": [32],
|
|
7767
|
-
"isScrolled": [32]
|
|
8091
|
+
"isScrolled": [32],
|
|
8092
|
+
"open": [64]
|
|
7768
8093
|
},
|
|
7769
8094
|
"$listeners$": undefined,
|
|
7770
8095
|
"$lazyBundleId$": "-",
|
|
@@ -7772,7 +8097,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7772
8097
|
}; }
|
|
7773
8098
|
}
|
|
7774
8099
|
|
|
7775
|
-
const sdSelectMultipleGroupCss =
|
|
8100
|
+
const sdSelectMultipleGroupCss = () => `.sd-select-multiple-group__dropdown{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-select-multiple-group__dropdown::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-select-multiple-group__dropdown::-webkit-scrollbar:horizontal{height:8px}.sd-select-multiple-group__dropdown::-webkit-scrollbar:vertical{width:8px}.sd-select-multiple-group__dropdown::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-select-multiple-group__dropdown::-webkit-scrollbar-track{background-color:transparent}sd-select-multiple-group{display:inline-block;height:fit-content}sd-select-multiple-group .sd-select-multiple-group{display:flex;flex-wrap:nowrap;width:var(--select-width, 200px);cursor:pointer;user-select:none;border:1px solid #aaaaaa;border-radius:4px;background-color:white;color:#333333}sd-select-multiple-group .sd-select-multiple-group:hover:not(.sd-select-multiple-group--disabled){background:#f6f6f6}sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled{cursor:not-allowed;background-color:#eeeeee;border-color:#cccccc}sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled .sd-select-multiple-group__label{border-right:1px solid #cccccc}sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled .sd-select-multiple-group__trigger{color:#888888}sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled .sd-select-multiple-group__trigger:focus,sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled .sd-select-multiple-group__trigger:focus-visible,sd-select-multiple-group .sd-select-multiple-group.sd-select-multiple-group--disabled .sd-select-multiple-group__trigger:focus-within{outline:none !important}sd-select-multiple-group .sd-select-multiple-group__label{font-size:12px;font-weight:500;color:#333333;padding:4px 12px;border-right:1px solid #cccccc;border-radius:4px 0 0 4px;background-color:#f6f6f6}sd-select-multiple-group .sd-select-multiple-group__container{position:relative;width:100%;display:flex}sd-select-multiple-group .sd-select-multiple-group__container .sd-select-multiple-group__trigger{padding:4px 20px 4px 12px;display:flex;width:100%;align-items:center}sd-select-multiple-group .sd-select-multiple-group__container .sd-select-multiple-group__trigger .sd-select-multiple-group__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px;font-size:12px;font-weight:400}sd-select-multiple-group .sd-select-multiple-group__container .sd-select-multiple-group__trigger .sd-select-multiple-group__clear{margin:0 4px;width:8px;height:8px;background-color:transparent;outline:none;border:none}sd-select-multiple-group .sd-select-multiple-group__container .sd-select-multiple-group__arrow{position:absolute;top:8px;right:8px;width:12px;height:12px;color:#888888;transition:transform 0.3s ease}sd-select-multiple-group .sd-select-multiple-group__container .sd-select-multiple-group__arrow--open{transform:rotate(180deg)}.sd-select-multiple-group__dropdown{width:var(--select-width, 200px);max-height:var(--select-dropdown-height, 260px);padding-bottom:2px;background-color:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);border-radius:4px;overflow-y:auto;color:#333333}.sd-select-multiple-group__dropdown .sd-select-multiple-group__search-container{position:sticky;top:0;display:flex;width:100%;background-color:white;align-items:center;padding:4px 8px}.sd-select-multiple-group__dropdown .sd-select-multiple-group__search-container sd-input{width:100%}.sd-select-multiple-group__dropdown .sd-select-multiple-group__search-container--scrolled{box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}.sd-select-multiple-group__dropdown .sd-select-multiple-group__option-placeholder{padding:4px 12px;font-size:12px;line-height:20px}`;
|
|
7776
8101
|
|
|
7777
8102
|
class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
7778
8103
|
constructor(hostRef) {
|
|
@@ -7832,7 +8157,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
7832
8157
|
if (this.searchable) {
|
|
7833
8158
|
const searchInput = await this.getNativeInputElement();
|
|
7834
8159
|
if (this.itemIndex === -1) {
|
|
7835
|
-
searchInput?.focus();
|
|
8160
|
+
searchInput?.focus({ preventScroll: true });
|
|
7836
8161
|
return;
|
|
7837
8162
|
}
|
|
7838
8163
|
else if (searchInput?.matches(':focus')) {
|
|
@@ -7870,7 +8195,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
7870
8195
|
// 드롭다운이 열릴 때 검색 입력에 포커스
|
|
7871
8196
|
if (this.searchable) {
|
|
7872
8197
|
const searchInput = await this.getNativeInputElement();
|
|
7873
|
-
searchInput?.focus();
|
|
8198
|
+
searchInput?.focus({ preventScroll: true });
|
|
7874
8199
|
}
|
|
7875
8200
|
if (!currentItem)
|
|
7876
8201
|
return;
|
|
@@ -8114,11 +8439,11 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8114
8439
|
'--select-width': this.width || '200px',
|
|
8115
8440
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
8116
8441
|
};
|
|
8117
|
-
return (hAsync(Host, { key: '
|
|
8442
|
+
return (hAsync(Host, { key: 'efc8661d6cd2e043b5e43e0872de3a9bff6d57a6', style: style }, hAsync("div", { key: 'e9f7615f75cb28974dececc8e847e868aef8210c', class: {
|
|
8118
8443
|
'sd-select-multiple-group': true,
|
|
8119
8444
|
'sd-select-multiple-group--open': this.isOpen,
|
|
8120
8445
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
8121
|
-
}, style: this.containerStyle, ref: el => (this.selectRef = el) }, this.renderLabel(this.label, this.labelStyle), hAsync("div", { key: '
|
|
8446
|
+
}, style: this.containerStyle, ref: el => (this.selectRef = el) }, this.renderLabel(this.label, this.labelStyle), hAsync("div", { key: '37ea4df1408eebde9e9e6d6d42579a3c40da325a', class: "sd-select-multiple-group__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
8122
8447
|
}
|
|
8123
8448
|
renderLabel(label, labelStyle) {
|
|
8124
8449
|
if (!label)
|
|
@@ -8168,7 +8493,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8168
8493
|
"itemIndex": ["itemIndexChanged"],
|
|
8169
8494
|
"isOpen": ["isOpenChanged"]
|
|
8170
8495
|
}; }
|
|
8171
|
-
static get style() { return sdSelectMultipleGroupCss; }
|
|
8496
|
+
static get style() { return sdSelectMultipleGroupCss(); }
|
|
8172
8497
|
static get cmpMeta() { return {
|
|
8173
8498
|
"$flags$": 772,
|
|
8174
8499
|
"$tagName$": "sd-select-multiple-group",
|
|
@@ -8205,7 +8530,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8205
8530
|
}; }
|
|
8206
8531
|
}
|
|
8207
8532
|
|
|
8208
|
-
const sdSelectOptionCss =
|
|
8533
|
+
const sdSelectOptionCss = () => `sd-select-option{display:block;height:fit-content;line-height:0}sd-select-option .sd-select__option{display:flex;padding:4px 12px;font-size:12px;line-height:20px;cursor:pointer}sd-select-option .sd-select__option__checkbox-wrapper{display:flex;width:100%;column-gap:8px;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}sd-select-option .sd-select__option--focused{background-color:#e6f1ff}sd-select-option .sd-select__option--selected:not(:hover):not(.sd-select__option--use-checkbox),sd-select-option .sd-select__option--focused:not(:hover):not(.sd-select__option--use-checkbox){color:#0075ff;font-weight:700}sd-select-option .sd-select__option--disabled{color:#aaaaaa;cursor:not-allowed}sd-select-option .sd-select__option:hover:not(.sd-select__option--disabled){background-color:#0075ff;color:white}`;
|
|
8209
8534
|
|
|
8210
8535
|
class SdSelectOption {
|
|
8211
8536
|
constructor(hostRef) {
|
|
@@ -8236,7 +8561,7 @@ class SdSelectOption {
|
|
|
8236
8561
|
}
|
|
8237
8562
|
};
|
|
8238
8563
|
render() {
|
|
8239
|
-
return (hAsync(Host, { key: '
|
|
8564
|
+
return (hAsync(Host, { key: 'd3235f4b0314c15a8d280377d88db6bf53f7eb79' }, hAsync("div", { key: '033fe384d67211a387d609a7b462330ee86c67a2', class: {
|
|
8240
8565
|
'sd-select__option': true,
|
|
8241
8566
|
'sd-select__option--selected': this.isSelected,
|
|
8242
8567
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -8255,7 +8580,7 @@ class SdSelectOption {
|
|
|
8255
8580
|
this.handleClick(e);
|
|
8256
8581
|
} }), hAsync("span", { class: "sd-select__option-label" }, this.option.label))) : (this.option.label))));
|
|
8257
8582
|
}
|
|
8258
|
-
static get style() { return sdSelectOptionCss; }
|
|
8583
|
+
static get style() { return sdSelectOptionCss(); }
|
|
8259
8584
|
static get cmpMeta() { return {
|
|
8260
8585
|
"$flags$": 768,
|
|
8261
8586
|
"$tagName$": "sd-select-option",
|
|
@@ -8276,7 +8601,7 @@ class SdSelectOption {
|
|
|
8276
8601
|
}; }
|
|
8277
8602
|
}
|
|
8278
8603
|
|
|
8279
|
-
const sdSelectOptionGroupCss =
|
|
8604
|
+
const sdSelectOptionGroupCss = () => `sd-select-option-group{display:block;height:fit-content}sd-select-option-group .sd-select__option-group{display:flex;padding:4px 12px;padding-left:12px;font-size:12px;line-height:20px;cursor:pointer}sd-select-option-group .sd-select__option-group.sd-select__option-group--group:not(.sd-select__option-group--use-checkbox),sd-select-option-group .sd-select__option-group.sd-select__option-group--subgroup:not(.sd-select__option-group--use-checkbox){cursor:default !important}sd-select-option-group .sd-select__option-group.sd-select__option-group--group{background-color:#f5faff !important;color:#333333 !important;font-weight:700}sd-select-option-group .sd-select__option-group.sd-select__option-group--subgroup{padding-left:20px;background-color:#f9f9f9 !important;color:#333333 !important;font-weight:500}sd-select-option-group .sd-select__option-group.sd-select__option-group--item{padding-left:28px}sd-select-option-group .sd-select__option-group sd-checkbox__bg{border-color:#888888}sd-select-option-group .sd-select__option-group__label-wrapper{display:flex;width:100%;column-gap:8px;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}sd-select-option-group .sd-select__option-group__label-wrapper sd-checkbox{flex-shrink:0}sd-select-option-group .sd-select__option-group__label-wrapper .sd-select__option-group-label{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-select-option-group .sd-select__option-group__label-wrapper .sd-select__option-group__count-indicator{width:fit-content;flex-shrink:0;font-size:12px;font-weight:500;color:#888888}sd-select-option-group .sd-select__option-group--focused{background-color:#e6f1ff}sd-select-option-group .sd-select__option-group--selected.sd-select__option-group--item:not(:hover):not(.sd-select__option-group--use-checkbox),sd-select-option-group .sd-select__option-group--focused.sd-select__option-group--item:not(:hover):not(.sd-select__option-group--use-checkbox){color:#0075ff;font-weight:700}sd-select-option-group .sd-select__option-group--disabled{color:#aaaaaa;cursor:not-allowed}sd-select-option-group .sd-select__option-group:hover:not(.sd-select__option-group--disabled){background-color:#0075ff;color:white}sd-select-option-group .sd-select__option-group:hover.sd-select__option-group--selected:not(.sd-select__option-group--group):not(.sd-select__option-group--subgroup) sd-checkbox .sd-checkbox__bg{border-color:white !important}`;
|
|
8280
8605
|
|
|
8281
8606
|
class SdSelectOptionGroup {
|
|
8282
8607
|
constructor(hostRef) {
|
|
@@ -8322,7 +8647,7 @@ class SdSelectOptionGroup {
|
|
|
8322
8647
|
}
|
|
8323
8648
|
};
|
|
8324
8649
|
render() {
|
|
8325
|
-
return (hAsync("div", { key: '
|
|
8650
|
+
return (hAsync("div", { key: 'db08c9cdb5179cccfa040fa03e06f286231bc83f', class: {
|
|
8326
8651
|
'sd-select__option-group': true,
|
|
8327
8652
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
8328
8653
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -8331,12 +8656,12 @@ class SdSelectOptionGroup {
|
|
|
8331
8656
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
8332
8657
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
8333
8658
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
8334
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
8659
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: 'b723d71ef120c5d51f0ab859177d67814411ceaa', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '1630dfc22fb2ec65c186282f499ec4e6f93a228d', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
8335
8660
|
e.preventDefault();
|
|
8336
8661
|
this.handleClick(this.option, this.isSelected, e);
|
|
8337
|
-
} })), hAsync("span", { key: '
|
|
8662
|
+
} })), hAsync("span", { key: '97802250891eca095172dae897bb957e49f9b5e3', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: '96fe449b31bce677693f2ad325a6529fc4b264e3', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
8338
8663
|
}
|
|
8339
|
-
static get style() { return sdSelectOptionGroupCss; }
|
|
8664
|
+
static get style() { return sdSelectOptionGroupCss(); }
|
|
8340
8665
|
static get cmpMeta() { return {
|
|
8341
8666
|
"$flags$": 768,
|
|
8342
8667
|
"$tagName$": "sd-select-option-group",
|
|
@@ -8359,7 +8684,7 @@ class SdSelectOptionGroup {
|
|
|
8359
8684
|
}; }
|
|
8360
8685
|
}
|
|
8361
8686
|
|
|
8362
|
-
const sdTableCss =
|
|
8687
|
+
const sdTableCss = () => `.sd-table__wrapper .sd-table__container .sd-table__middle{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:horizontal{height:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:vertical{width:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-track{background-color:transparent}.sd-table__wrapper{height:var(--table-height, auto);width:var(--table-width, 100%);color:#222222}.sd-table__wrapper .sd-table__container{width:100%;height:auto;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;will-change:scroll-position;height:var(--table-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable td.sd-td--selected,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable th.sd-th--selected{width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-header thead{position:sticky;top:0;z-index:120}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-right{position:sticky;background-color:#f5faff;z-index:110 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-right{position:sticky;background-color:white;z-index:100 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-left{left:var(--sticky-left-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-right{right:var(--sticky-right-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-cell{position:sticky;z-index:102;background-color:#f5faff}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-cell{position:sticky;z-index:101;background-color:white}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead{opacity:0.4}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead tr th.sd-th{border-bottom:1px solid rgba(225, 225, 225, 0.4) !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-td,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-th,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table .sd-th__content--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead{height:36px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr{width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th{background:#f5faff;height:36px;padding:0 16px;font-weight:500;vertical-align:middle;border-bottom:1px solid #e1e1e1;-webkit-user-select:none;user-select:none;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content{display:flex;flex-flow:row nowrap;align-items:center;gap:4px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--left{justify-content:flex-start}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--center{justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--right{justify-content:flex-end}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__resizer{position:absolute;top:50%;right:0;transform:translateY(-50%);width:4px;height:16px;cursor:col-resize;z-index:3;border-left:1px solid #cccccc;border-right:1px solid #cccccc}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody .sd-table__loading{position:absolute;top:0;left:0;width:100%;height:calc(var(--table-height, auto) - 36px);min-height:calc(100% - 36px);background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr:last-of-type sd-td{border-bottom:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td{height:44px;padding:0 16px;border-bottom:1px solid #e1e1e1;background:white;vertical-align:middle}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--left{text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--center{text-align:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--right{text-align:right}.sd-table__wrapper .sd-table__container .sd-table__bottom{background:white;text-align:center}.sd-table__wrapper .sd-table__pagination{position:relative;background:#f9f9f9;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e1e1;border-top:none;border-radius:8px}.sd-table__wrapper .sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
8363
8688
|
|
|
8364
8689
|
let SdTable$1 = class SdTable {
|
|
8365
8690
|
constructor(hostRef) {
|
|
@@ -8553,10 +8878,10 @@ let SdTable$1 = class SdTable {
|
|
|
8553
8878
|
}, style: this.getStickyStyle(colIdx) }, hAsync("div", { class: `sd-th__content sd-th__content--${col.align || 'left'}` }, hAsync("slot", { name: `header-cell-${col.name}` }, hAsync("div", { class: "sd-th__content--label" }, col.label)), col.usePageMoveIcon && hAsync("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (hAsync("sd-tooltip", { ...col.tooltipOptions }, hAsync("div", { slot: "content" }, col.tooltip.map(text => (hAsync("p", null, text))))))), this.resizable && typeof window !== 'undefined' && (hAsync("div", { class: "sd-th__resizer", onMouseDown: (evt) => this.handleResize(colIdx, evt) }))))))));
|
|
8554
8879
|
}
|
|
8555
8880
|
render() {
|
|
8556
|
-
return (hAsync(Host, { key: '
|
|
8881
|
+
return (hAsync(Host, { key: 'e87739da29d845e6125f0902d4ed6b5d026a6396' }, hAsync("div", { key: '88cdda9d8ea755451d1d4203e1c99e6299e5976f', class: "sd-table__wrapper", style: {
|
|
8557
8882
|
'--table-width': this.width,
|
|
8558
8883
|
'--table-height': this.height,
|
|
8559
|
-
} }, hAsync("div", { key: '
|
|
8884
|
+
} }, hAsync("div", { key: 'd3005abd30787fc1dc9abeb696929431953b41af', class: "sd-table__container" }, hAsync("div", { key: 'df9392e80901fd65f7ac5dbf5062cc7066350801', class: "sd-table__middle", role: "table" }, hAsync("div", { key: 'a0fbd5d6dc678c9dc7a830c42081bb4bbb94ab8c', part: "table", class: this.sdTableClasses }, this.renderHeader(), hAsync("sd-tbody", { key: 'adc08dcd7f7f150437ed15de422e5d2715533171' }, hAsync("slot", { key: '2ceb6debd25a399178fb3e0357e80f568ca20e37' })))), hAsync("div", { key: '281e0bb2159e295dafde37dc7ca393a96e9e7ad4', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: '834780fb066391bca88dba1e2944492c30ccbc22', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '623576270d271eab4886e99c2f0163aaf41b2904', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
|
|
8560
8885
|
if (!this.useInternalPagination) {
|
|
8561
8886
|
this.sdPageChange.emit(e.detail);
|
|
8562
8887
|
}
|
|
@@ -8564,7 +8889,7 @@ let SdTable$1 = class SdTable {
|
|
|
8564
8889
|
this.currentPage = e.detail;
|
|
8565
8890
|
this.sdPageChange.emit(this.currentPage);
|
|
8566
8891
|
}
|
|
8567
|
-
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '
|
|
8892
|
+
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '85ea699d7acb1ad4eccc6c97ca668a60c6f606e7', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
8568
8893
|
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
8569
8894
|
if (!this.useInternalPagination) {
|
|
8570
8895
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
@@ -8592,7 +8917,7 @@ let SdTable$1 = class SdTable {
|
|
|
8592
8917
|
"selected": ["handleSelectedChange"],
|
|
8593
8918
|
"pagination": ["handlePaginationChange"]
|
|
8594
8919
|
}; }
|
|
8595
|
-
static get style() { return sdTableCss; }
|
|
8920
|
+
static get style() { return sdTableCss(); }
|
|
8596
8921
|
static get cmpMeta() { return {
|
|
8597
8922
|
"$flags$": 772,
|
|
8598
8923
|
"$tagName$": "sd-table",
|
|
@@ -8627,7 +8952,7 @@ let SdTable$1 = class SdTable {
|
|
|
8627
8952
|
}; }
|
|
8628
8953
|
};
|
|
8629
8954
|
|
|
8630
|
-
const sdTableBackupCss =
|
|
8955
|
+
const sdTableBackupCss = () => `.sd-table__wrapper .sd-table__container .sd-table__middle{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:horizontal{height:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:vertical{width:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-track{background-color:transparent}.sd-table__wrapper{height:var(--table-height, auto);width:var(--table-width, 100%);color:#222222}.sd-table__wrapper .sd-table__container{width:100%;height:var(--table-container-height, auto);position:relative;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden;background:#ffffff}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;will-change:scroll-position;min-height:var(--table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle--scrollable{height:var(--table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle--loading{overflow:hidden !important;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle--loading__spinner{position:absolute;top:0;left:0;width:100%;height:var(--table-container-height, 100%);min-height:var(--table-container-height, 100%);background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll{position:relative;height:var(--total-virtual-height, --table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr:not([aria-hidden=true]){width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]{padding:0;border:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]:not(.sd-table__virtual-row-spacer) td{display:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable td.sd-td--selected,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable th.sd-th--selected{width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-header thead{position:sticky;top:0;z-index:120}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-right{position:sticky;background-color:#f5faff;z-index:110 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-right{position:sticky;background-color:white;z-index:100 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-left{left:var(--sticky-left-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-right{right:var(--sticky-right-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-cell{position:sticky;z-index:102;background-color:#f5faff}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-cell{position:sticky;z-index:101;background-color:white}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead{opacity:0.4}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead tr th.sd-th{border-bottom:1px solid rgba(225, 225, 225, 0.4) !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-td,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-th,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table .sd-th__content--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead{height:36px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr{width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th{background:#f5faff;height:36px;padding:0 16px;font-weight:500;vertical-align:middle;border-bottom:1px solid #e1e1e1;-webkit-user-select:none;user-select:none;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content{display:flex;flex-flow:row nowrap;align-items:center;gap:4px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--left{justify-content:flex-start}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--center{justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--right{justify-content:flex-end}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__resizer{position:absolute;top:50%;right:0;transform:translateY(-50%);width:4px;height:16px;cursor:col-resize;z-index:3;border-left:1px solid #cccccc;border-right:1px solid #cccccc}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td{height:44px;padding:0 16px;border-bottom:1px solid #e1e1e1;background:white;vertical-align:middle}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--left{text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--center{text-align:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--right{text-align:right}.sd-table__wrapper .sd-table__container .sd-table__bottom{background:white;text-align:center}.sd-table__wrapper .sd-table__container .sd-table__bottom .sd-table__no-data{padding-top:15%;color:#888888}.sd-table__wrapper .sd-table__pagination{position:relative;background:#f9f9f9;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e1e1;border-top:none;border-radius:8px}.sd-table__wrapper .sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.sd-table__wrapper .sd-table__virtual-spacer,.sd-table__wrapper .sd-table__virtual-row-spacer{padding:0 !important}.sd-table__wrapper .sd-table__virtual-spacer td,.sd-table__wrapper .sd-table__virtual-row-spacer td{padding:0 !important;border:none}.sd-table__wrapper .sd-table__virtual-spacer .sd-table__skeleton,.sd-table__wrapper .sd-table__virtual-row-spacer .sd-table__skeleton{width:100%;height:100%;background-image:repeating-linear-gradient(0deg, rgba(246, 246, 246, 0.3) 0px, rgba(225, 225, 225, 0.5) calc(var(--row-height, 44px) / 2), rgba(246, 246, 246, 0.3) var(--row-height, 44px));background-size:100% 200%;animation:skeleton-loading 1.5s ease-in-out infinite;position:relative}.sd-table__wrapper .sd-table__virtual-spacer .sd-table__skeleton::before,.sd-table__wrapper .sd-table__virtual-row-spacer .sd-table__skeleton::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row-height, 44px) - 1px), #e1e1e1 calc(var(--row-height, 44px) - 1px), #e1e1e1 var(--row-height, 44px));pointer-events:none}.sd-table__wrapper .sd-table__skeleton-cell{width:100%;height:20px;background:linear-gradient(90deg, rgba(246, 246, 246, 0.3) 0%, rgba(225, 225, 225, 0.5) 50%, rgba(246, 246, 246, 0.3) 100%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;border-radius:4px}@keyframes skeleton-loading{0%{background-position:0% 0%}50%{background-position:100% 100%}100%{background-position:0% 0%}}`;
|
|
8631
8956
|
|
|
8632
8957
|
class SdTable {
|
|
8633
8958
|
constructor(hostRef) {
|
|
@@ -9270,16 +9595,16 @@ class SdTable {
|
|
|
9270
9595
|
}, "aria-hidden": "true" }, hAsync("div", { class: "sd-table__skeleton-cell" })));
|
|
9271
9596
|
}
|
|
9272
9597
|
render() {
|
|
9273
|
-
return (hAsync(Host, { key: '
|
|
9598
|
+
return (hAsync(Host, { key: '5d04a8b7cf9dbc6cfb9dc4d6497f4eb6190caca1' }, hAsync("div", { key: 'da26d320dbd4542b226434e355c8ee947b4e1cf6', class: "sd-table__wrapper", style: {
|
|
9274
9599
|
'--table-width': this.width,
|
|
9275
9600
|
'--table-height': this.height,
|
|
9276
|
-
} }, hAsync("div", { key: '
|
|
9601
|
+
} }, hAsync("div", { key: 'f3fe16bd185e08f2cbba94199bb9d55dc854b085', class: "sd-table__container", style: {
|
|
9277
9602
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
9278
|
-
} }, hAsync("div", { key: '
|
|
9603
|
+
} }, hAsync("div", { key: '5e0976df3206aca9f33e54b85bda479110397621', class: {
|
|
9279
9604
|
'sd-table__middle': true,
|
|
9280
9605
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
9281
9606
|
'sd-table__middle--loading': this.isLoading,
|
|
9282
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
9607
|
+
} }, this.isLoading && (hAsync("div", { key: 'fa934df1cf18e69b4054b6795ac9973755823cf6', class: "sd-table__middle--loading__spinner" }, hAsync("sd-loading-spinner", { key: 'd21458340e4904ce938a86321732dfb04969ef7c' }))), hAsync("table", { key: '0bddebe63faffebdd3950f21e5a66e4f8d8d56e9', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), hAsync("div", { key: '12a66491f58bcabcfdd861a9ca2d0dc32d0968df', class: "sd-table__bottom" }, !this.paginatedRows.length && (hAsync("div", { key: '2058dace66a36697ca7018d6f83f3a00582fe9a1', class: "sd-table__no-data" }, hAsync("slot", { key: 'c99d5416ce3ccb2c1512da61b60391d5b63c85b1', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: 'bd8f8b4351a8195489bc1d585585f321e26c8c7b', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '443622f1f52136e7d4212d4073e23cd2b6c05c99', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: 'cdcce50397d18466c3c010625e5dfe369852da73', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
9283
9608
|
}
|
|
9284
9609
|
static get watchers() { return {
|
|
9285
9610
|
"columns": ["handleColumnsChange"],
|
|
@@ -9288,7 +9613,7 @@ class SdTable {
|
|
|
9288
9613
|
"selected": ["handleSelectedChange"],
|
|
9289
9614
|
"pagination": ["handlePaginationChange"]
|
|
9290
9615
|
}; }
|
|
9291
|
-
static get style() { return sdTableBackupCss; }
|
|
9616
|
+
static get style() { return sdTableBackupCss(); }
|
|
9292
9617
|
static get cmpMeta() { return {
|
|
9293
9618
|
"$flags$": 772,
|
|
9294
9619
|
"$tagName$": "sd-table-backup",
|
|
@@ -9334,30 +9659,106 @@ class SdTable {
|
|
|
9334
9659
|
}; }
|
|
9335
9660
|
}
|
|
9336
9661
|
|
|
9337
|
-
const
|
|
9662
|
+
const sdTabsCss = () => `sd-tabs{display:inline-block}sd-tabs .sd-tabs{display:flex;flex-direction:row;gap:4px;border-bottom:1px solid #0075ff}sd-tabs .sd-tabs__tab{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid #cccccc;border-bottom:none;border-radius:4px 4px 0 0;background-color:#f6f6f6;color:#888888;font-weight:400;transition:all 0.2s ease;position:relative;user-select:none}sd-tabs .sd-tabs__tab::before{content:"";position:absolute;inset:0;opacity:0;transition:all 0.3s}sd-tabs .sd-tabs__tab--selected{border-color:#0075ff;color:#0075ff;background-color:white;font-weight:700}sd-tabs .sd-tabs__tab--selected:hover::before{background-color:#0075ff;opacity:0.15}sd-tabs .sd-tabs__tab--unselected:hover::before{background-color:#888888;opacity:0.15}sd-tabs .sd-tabs__label{user-select:none}sd-tabs .sd-tabs--md .sd-tabs__tab{padding:12px 32px;font-size:12px;line-height:20px}sd-tabs .sd-tabs--sm .sd-tabs__tab{padding:8px 20px;font-size:12px;line-height:16px}sd-tabs .sd-tabs--sub{gap:32px;border-bottom:none}sd-tabs .sd-tabs--sub .sd-tabs__tab{border:none;border-radius:0;background-color:transparent;color:#222222;font-weight:400;padding:0 0 2px 0}sd-tabs .sd-tabs--sub .sd-tabs__tab::before{display:none}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected{color:#0075ff;font-weight:700;border-bottom:1px solid #0075ff;background-color:transparent}sd-tabs .sd-tabs--sub .sd-tabs__tab--selected:hover::before,sd-tabs .sd-tabs--sub .sd-tabs__tab--unselected:hover::before{display:none}`;
|
|
9338
9663
|
|
|
9339
|
-
|
|
9340
|
-
grey: 'bg-grey_20 text-grey_70',
|
|
9341
|
-
red: 'bg-red_15 text-red_70',
|
|
9342
|
-
orange: 'bg-orange_10 text-orange_65',
|
|
9343
|
-
yellow: 'bg-yellow_10 text-yellow_60',
|
|
9344
|
-
green: 'bg-green_15 text-green_70',
|
|
9345
|
-
blue: 'bg-brilliantblue_20 text-brilliantblue_75',
|
|
9346
|
-
darkblue: 'bg-oceanblue_15 text-oceanblue_70',
|
|
9347
|
-
indigo: 'bg-brilliantblue_10 text-brilliantblue_85',
|
|
9348
|
-
};
|
|
9349
|
-
class SdTag {
|
|
9664
|
+
class SdTabs {
|
|
9350
9665
|
constructor(hostRef) {
|
|
9351
9666
|
registerInstance(this, hostRef);
|
|
9667
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
9352
9668
|
}
|
|
9353
|
-
|
|
9669
|
+
value;
|
|
9670
|
+
tabs = [];
|
|
9354
9671
|
size = 'md';
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9672
|
+
isSub = false;
|
|
9673
|
+
selectedValue;
|
|
9674
|
+
sdChange;
|
|
9675
|
+
componentWillLoad() {
|
|
9676
|
+
if (this.value !== undefined && this.value !== null) {
|
|
9677
|
+
this.selectedValue = this.value;
|
|
9678
|
+
}
|
|
9679
|
+
}
|
|
9680
|
+
valueChanged(newValue) {
|
|
9681
|
+
this.selectedValue = newValue;
|
|
9682
|
+
}
|
|
9683
|
+
handleTabClick = (tabValue) => {
|
|
9684
|
+
this.selectedValue = tabValue;
|
|
9685
|
+
this.value = tabValue;
|
|
9686
|
+
this.sdChange.emit(tabValue);
|
|
9687
|
+
};
|
|
9688
|
+
isTabSelected(tab) {
|
|
9689
|
+
return this.selectedValue === tab.value;
|
|
9690
|
+
}
|
|
9691
|
+
getTabClasses(tab) {
|
|
9692
|
+
const classes = [
|
|
9693
|
+
'sd-tabs__tab',
|
|
9694
|
+
this.isTabSelected(tab) ? 'sd-tabs__tab--selected' : 'sd-tabs__tab--unselected',
|
|
9695
|
+
];
|
|
9696
|
+
return classes.join(' ');
|
|
9697
|
+
}
|
|
9698
|
+
getContainerClasses() {
|
|
9699
|
+
const classes = ['sd-tabs', `sd-tabs--${this.size}`];
|
|
9700
|
+
if (this.isSub) {
|
|
9701
|
+
classes.push('sd-tabs--sub');
|
|
9702
|
+
}
|
|
9703
|
+
return classes.join(' ');
|
|
9704
|
+
}
|
|
9705
|
+
getBadgeColors(tab) {
|
|
9706
|
+
if (this.isTabSelected(tab)) {
|
|
9707
|
+
return { bgColor: '#E6F1FF', textColor: '#0075FF' };
|
|
9708
|
+
}
|
|
9709
|
+
return { bgColor: '#E5E5E5', textColor: '#737373' };
|
|
9710
|
+
}
|
|
9711
|
+
render() {
|
|
9712
|
+
return (hAsync("div", { key: '749c892c45eccc71e2faad842be4dfd311aa2eed', class: this.getContainerClasses(), role: "tablist" }, this.tabs.map((tab, index) => {
|
|
9713
|
+
const isSelected = this.isTabSelected(tab);
|
|
9714
|
+
const badgeColors = this.getBadgeColors(tab);
|
|
9715
|
+
return (hAsync("div", { key: `tab-${index}`, class: this.getTabClasses(tab), role: "tab", "aria-selected": isSelected.toString(), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, hAsync("span", { class: "sd-tabs__label" }, tab.label), tab.badge && (hAsync("sd-tag", { size: this.size, label: tab.badge.toString(), bgColor: badgeColors.bgColor, textColor: badgeColors.textColor, rounded: true }))));
|
|
9716
|
+
})));
|
|
9717
|
+
}
|
|
9718
|
+
static get watchers() { return {
|
|
9719
|
+
"value": ["valueChanged"]
|
|
9720
|
+
}; }
|
|
9721
|
+
static get style() { return sdTabsCss(); }
|
|
9722
|
+
static get cmpMeta() { return {
|
|
9723
|
+
"$flags$": 768,
|
|
9724
|
+
"$tagName$": "sd-tabs",
|
|
9725
|
+
"$members$": {
|
|
9726
|
+
"value": [1537],
|
|
9727
|
+
"tabs": [1040],
|
|
9728
|
+
"size": [1],
|
|
9729
|
+
"isSub": [4, "is-sub"],
|
|
9730
|
+
"selectedValue": [32]
|
|
9731
|
+
},
|
|
9732
|
+
"$listeners$": undefined,
|
|
9733
|
+
"$lazyBundleId$": "-",
|
|
9734
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
9735
|
+
}; }
|
|
9736
|
+
}
|
|
9737
|
+
|
|
9738
|
+
const sdTagCss = () => `:host{display:inline-block}:host([full-width]){display:block}.sd-tag{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:1px solid transparent;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.sd-tag__content{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sd-tag--custom-color{background:var(--tag-bg-color);color:var(--tag-text-color)}.sd-tag--sm{padding:0 6px;font-size:11px;line-height:18px;height:20px;border-radius:4px}.sd-tag--md{padding:0 8px;font-size:12px;font-weight:700;line-height:20px;height:24px;border-radius:4px}.sd-tag--lg{padding:0 10px;font-size:14px;font-weight:700;line-height:24px;min-height:28px;border-radius:5px}.sd-tag--rounded.sd-tag--sm{border-radius:20px}.sd-tag--rounded.sd-tag--md{border-radius:20px}.sd-tag--rounded.sd-tag--lg{border-radius:15px}`;
|
|
9739
|
+
|
|
9740
|
+
const TAG_COLORS = {
|
|
9741
|
+
grey: 'bg-grey_20 text-grey_70',
|
|
9742
|
+
red: 'bg-red_15 text-red_70',
|
|
9743
|
+
orange: 'bg-orange_10 text-orange_65',
|
|
9744
|
+
yellow: 'bg-yellow_10 text-yellow_60',
|
|
9745
|
+
green: 'bg-green_15 text-green_70',
|
|
9746
|
+
blue: 'bg-brilliantblue_20 text-brilliantblue_75',
|
|
9747
|
+
darkblue: 'bg-oceanblue_15 text-oceanblue_70',
|
|
9748
|
+
indigo: 'bg-brilliantblue_10 text-brilliantblue_85',
|
|
9749
|
+
};
|
|
9750
|
+
class SdTag {
|
|
9751
|
+
constructor(hostRef) {
|
|
9752
|
+
registerInstance(this, hostRef);
|
|
9753
|
+
}
|
|
9754
|
+
get el() { return getElement(this); }
|
|
9755
|
+
size = 'md';
|
|
9756
|
+
color = 'grey';
|
|
9757
|
+
rounded = false;
|
|
9758
|
+
label = '';
|
|
9759
|
+
bgColor;
|
|
9760
|
+
textColor;
|
|
9761
|
+
getTagClasses() {
|
|
9361
9762
|
const classes = ['sd-tag', `sd-tag--${this.size}`];
|
|
9362
9763
|
if (this.rounded) {
|
|
9363
9764
|
classes.push('sd-tag--rounded');
|
|
@@ -9377,12 +9778,12 @@ class SdTag {
|
|
|
9377
9778
|
}
|
|
9378
9779
|
render() {
|
|
9379
9780
|
const tagClasses = this.getTagClasses();
|
|
9380
|
-
return (hAsync("span", { key: '
|
|
9781
|
+
return (hAsync("span", { key: '6f3353059d6a1516dd11e23f6347f52f514020e4', class: tagClasses, style: {
|
|
9381
9782
|
'--tag-bg-color': this.bgColor,
|
|
9382
9783
|
'--tag-text-color': this.textColor,
|
|
9383
9784
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
9384
9785
|
}
|
|
9385
|
-
static get style() { return sdTagCss; }
|
|
9786
|
+
static get style() { return sdTagCss(); }
|
|
9386
9787
|
static get cmpMeta() { return {
|
|
9387
9788
|
"$flags$": 777,
|
|
9388
9789
|
"$tagName$": "sd-tag",
|
|
@@ -9400,16 +9801,16 @@ class SdTag {
|
|
|
9400
9801
|
}; }
|
|
9401
9802
|
}
|
|
9402
9803
|
|
|
9403
|
-
const sdTbodyCss =
|
|
9804
|
+
const sdTbodyCss = () => `sd-tbody{display:table-row-group}`;
|
|
9404
9805
|
|
|
9405
9806
|
class SdTbody {
|
|
9406
9807
|
constructor(hostRef) {
|
|
9407
9808
|
registerInstance(this, hostRef);
|
|
9408
9809
|
}
|
|
9409
9810
|
render() {
|
|
9410
|
-
return (hAsync(Host, { key: '
|
|
9811
|
+
return (hAsync(Host, { key: '96bedf612efa56d790df7070e2641f6769da81a9' }, hAsync("slot", { key: '9980c55cf76b1600034d8dcd60249b392c0c50f2' })));
|
|
9411
9812
|
}
|
|
9412
|
-
static get style() { return sdTbodyCss; }
|
|
9813
|
+
static get style() { return sdTbodyCss(); }
|
|
9413
9814
|
static get cmpMeta() { return {
|
|
9414
9815
|
"$flags$": 260,
|
|
9415
9816
|
"$tagName$": "sd-tbody",
|
|
@@ -9420,7 +9821,7 @@ class SdTbody {
|
|
|
9420
9821
|
}; }
|
|
9421
9822
|
}
|
|
9422
9823
|
|
|
9423
|
-
const sdTdCss =
|
|
9824
|
+
const sdTdCss = () => `sd-td{display:table-cell;padding:12px 16px;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}`;
|
|
9424
9825
|
|
|
9425
9826
|
class SdTd {
|
|
9426
9827
|
constructor(hostRef) {
|
|
@@ -9431,13 +9832,13 @@ class SdTd {
|
|
|
9431
9832
|
tdStyle;
|
|
9432
9833
|
tdClass;
|
|
9433
9834
|
render() {
|
|
9434
|
-
return (hAsync(Host, { key: '
|
|
9835
|
+
return (hAsync(Host, { key: '182bd00cbbb22b4f3613e973d2999421a3f5f2cd', role: "cell", class: {
|
|
9435
9836
|
'sd-td': true,
|
|
9436
9837
|
[`sd-td--${this.align}`]: true,
|
|
9437
9838
|
[this.tdClass || '']: Boolean(this.tdClass),
|
|
9438
|
-
}, style: this.tdStyle }, hAsync("slot", { key: '
|
|
9839
|
+
}, style: this.tdStyle }, hAsync("slot", { key: 'fff1a74106822c8092fa57ba785f6ab5be96edcd' })));
|
|
9439
9840
|
}
|
|
9440
|
-
static get style() { return sdTdCss; }
|
|
9841
|
+
static get style() { return sdTdCss(); }
|
|
9441
9842
|
static get cmpMeta() { return {
|
|
9442
9843
|
"$flags$": 772,
|
|
9443
9844
|
"$tagName$": "sd-td",
|
|
@@ -9453,16 +9854,16 @@ class SdTd {
|
|
|
9453
9854
|
}; }
|
|
9454
9855
|
}
|
|
9455
9856
|
|
|
9456
|
-
const sdThCss =
|
|
9857
|
+
const sdThCss = () => `sd-th{display:table-cell;padding:12px;font-weight:bold;text-align:left;border-bottom:2px solid #ddd;background-color:#f1f1f1}`;
|
|
9457
9858
|
|
|
9458
9859
|
class SdTh {
|
|
9459
9860
|
constructor(hostRef) {
|
|
9460
9861
|
registerInstance(this, hostRef);
|
|
9461
9862
|
}
|
|
9462
9863
|
render() {
|
|
9463
|
-
return (hAsync(Host, { key: '
|
|
9864
|
+
return (hAsync(Host, { key: 'cbd2372809ca102893f62b3b4e2d51342cc4c52f', role: "columnheader" }, hAsync("slot", { key: 'c51c2635013c8d405bf3d95d46d2b99bc52c3326' })));
|
|
9464
9865
|
}
|
|
9465
|
-
static get style() { return sdThCss; }
|
|
9866
|
+
static get style() { return sdThCss(); }
|
|
9466
9867
|
static get cmpMeta() { return {
|
|
9467
9868
|
"$flags$": 260,
|
|
9468
9869
|
"$tagName$": "sd-th",
|
|
@@ -9473,7 +9874,78 @@ class SdTh {
|
|
|
9473
9874
|
}; }
|
|
9474
9875
|
}
|
|
9475
9876
|
|
|
9476
|
-
const
|
|
9877
|
+
const sdToastMessageCss = () => `.sd-toast-message.sc-sd-toast-message{display:flex;width:fit-content;align-items:center;gap:16px;padding:12px 24px;border-radius:4px;background-color:var(--sd-toast-bg);color:var(--sd-toast-text);transition:opacity 0.2s ease, visibility 0.2s ease;box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}.sd-toast-message--hidden.sc-sd-toast-message{opacity:0;visibility:hidden;pointer-events:none}.sd-toast-message__icon.sc-sd-toast-message{display:flex;align-items:center;flex-shrink:0}.sd-toast-message__content.sc-sd-toast-message{display:flex;flex:1}.sd-toast-message__message.sc-sd-toast-message{font-size:14px;line-height:20px;font-weight:400}.sd-toast-message__link.sc-sd-toast-message{font-size:14px;line-height:20px;color:var(--sd-toast-text);text-decoration:underline;cursor:pointer;transition:opacity 0.2s ease;margin-left:4px}.sd-toast-message__link.sc-sd-toast-message:hover{opacity:0.8}.sd-toast-message__button.sc-sd-toast-message{flex-shrink:0}.sd-toast-message__button.sc-sd-toast-message button.sc-sd-toast-message{color:var(--button-text-color, inherit) !important}.sd-toast-message__close.sc-sd-toast-message{display:flex;align-items:center;justify-content:center;padding:4px;background-color:transparent;border:none;cursor:pointer;transition:opacity 0.2s ease;flex-shrink:0}.sd-toast-message__close.sc-sd-toast-message:hover{opacity:0.7}.sd-toast-message__close.sc-sd-toast-message:active{opacity:0.5}`;
|
|
9878
|
+
|
|
9879
|
+
class SdToastMessage {
|
|
9880
|
+
constructor(hostRef) {
|
|
9881
|
+
registerInstance(this, hostRef);
|
|
9882
|
+
this.sdClose = createEvent(this, "sdClose");
|
|
9883
|
+
this.sdButtonClick = createEvent(this, "sdButtonClick");
|
|
9884
|
+
}
|
|
9885
|
+
icon;
|
|
9886
|
+
message;
|
|
9887
|
+
link;
|
|
9888
|
+
linkLabel;
|
|
9889
|
+
buttonLabel;
|
|
9890
|
+
close = false;
|
|
9891
|
+
type = 'basicDark';
|
|
9892
|
+
sdClose;
|
|
9893
|
+
sdButtonClick;
|
|
9894
|
+
isVisible = true;
|
|
9895
|
+
static COLOR_OF_TYPE = {
|
|
9896
|
+
basicLight: { background: 'white', text: 'grey_95' },
|
|
9897
|
+
basicDark: { background: 'steelblue_90', text: 'white' },
|
|
9898
|
+
error: { background: 'red_70', text: 'white' },
|
|
9899
|
+
caution: { background: 'yellow_45', text: 'grey_90' },
|
|
9900
|
+
complete: { background: 'green_75', text: 'white' },
|
|
9901
|
+
progress: { background: 'brilliantblue_80', text: 'white' },
|
|
9902
|
+
};
|
|
9903
|
+
handleClose = () => {
|
|
9904
|
+
this.isVisible = false;
|
|
9905
|
+
this.sdClose.emit();
|
|
9906
|
+
};
|
|
9907
|
+
handleButtonClick = () => {
|
|
9908
|
+
this.sdButtonClick.emit();
|
|
9909
|
+
};
|
|
9910
|
+
getContainerClasses() {
|
|
9911
|
+
const classes = ['sd-toast-message', `sd-toast-message--${this.type}`];
|
|
9912
|
+
if (!this.isVisible) {
|
|
9913
|
+
classes.push('sd-toast-message--hidden');
|
|
9914
|
+
}
|
|
9915
|
+
return classes.join(' ');
|
|
9916
|
+
}
|
|
9917
|
+
render() {
|
|
9918
|
+
const colorTokens = SdToastMessage.COLOR_OF_TYPE[this.type];
|
|
9919
|
+
const colors = {
|
|
9920
|
+
background: resolveColor(colorTokens.background),
|
|
9921
|
+
text: resolveColor(colorTokens.text),
|
|
9922
|
+
};
|
|
9923
|
+
return (hAsync(Host, { key: '4d342822195d44b49e5976e8d5e66fc7a58301b9', style: {
|
|
9924
|
+
'--sd-toast-bg': colors.background,
|
|
9925
|
+
'--sd-toast-text': colors.text,
|
|
9926
|
+
} }, hAsync("div", { key: '2b33303cc0fc474d9c58a83a925a43b59f577125', class: this.getContainerClasses(), role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: 'a7b7c49a4a15c76f0633520046128ce937e6410d', class: "sd-toast-message__icon" }, hAsync("sd-icon", { key: '7c61a7142e8e442936c9b2736cbcf8ebf8521087', name: this.icon, size: 16, color: colors.text }))), hAsync("div", { key: 'd0606186e02a44ba81ba3924baa0bdd8b34984f1', class: "sd-toast-message__content" }, hAsync("span", { key: '52e689c1e1d6a7170381a46f8c9370105386aac7', class: "sd-toast-message__message" }, this.message)), this.link && (hAsync("a", { key: '0818b9ffe71bd2cbe9fc00bfab9f8a6591f03cbd', href: this.link, class: "sd-toast-message__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (hAsync("sd-button", { key: '4d4d7b15137574db44b64e3dc62010fe8ccdf530', class: `sd-toast-message__button ${this.type === 'basicLight' ? 'text-white' : ''}`, label: this.buttonLabel, variant: "primary", color: this.type === 'basicLight' ? 'oceanblue_75' : 'white', size: "sm", onSdClick: this.handleButtonClick, style: this.type !== 'basicLight' ? { '--button-text-color': resolveColor('grey_95') } : {} })), this.close && (hAsync("button", { key: '991ad8fe130c370f24ce23cf6d98a9ac797f7367', type: "button", class: "sd-toast-message__close", onClick: this.handleClose, "aria-label": "Close", title: "Close" }, hAsync("sd-icon", { key: 'd71dee73974143e5b6eb92f4135d40ee1df178fb', name: "close", size: 12, color: colors.text }))))));
|
|
9927
|
+
}
|
|
9928
|
+
static get style() { return sdToastMessageCss(); }
|
|
9929
|
+
static get cmpMeta() { return {
|
|
9930
|
+
"$flags$": 770,
|
|
9931
|
+
"$tagName$": "sd-toast-message",
|
|
9932
|
+
"$members$": {
|
|
9933
|
+
"icon": [1],
|
|
9934
|
+
"message": [1],
|
|
9935
|
+
"link": [1],
|
|
9936
|
+
"linkLabel": [1, "link-label"],
|
|
9937
|
+
"buttonLabel": [1, "button-label"],
|
|
9938
|
+
"close": [4],
|
|
9939
|
+
"type": [1],
|
|
9940
|
+
"isVisible": [32]
|
|
9941
|
+
},
|
|
9942
|
+
"$listeners$": undefined,
|
|
9943
|
+
"$lazyBundleId$": "-",
|
|
9944
|
+
"$attrsToReflect$": []
|
|
9945
|
+
}; }
|
|
9946
|
+
}
|
|
9947
|
+
|
|
9948
|
+
const sdToggleCss = () => `sd-toggle{display:inline-block;height:20px;line-height:0}sd-toggle .sd-toggle{cursor:pointer;display:inline-flex;align-items:center;gap:8px;height:20px}sd-toggle .sd-toggle>input{display:none}sd-toggle .sd-toggle__label{font-size:12px;color:#333333;line-height:20px}sd-toggle .sd-toggle__track{width:36px;height:20px;border-radius:12px;background:#cccccc;position:relative;transition:background-color 0.2s ease}sd-toggle .sd-toggle__thumb{width:16px;height:16px;border-radius:50%;background:white;position:absolute;top:2px;left:2px;transition:transform 0.2s ease}sd-toggle .sd-toggle--checked .sd-toggle__track{background:#0075ff}sd-toggle .sd-toggle--checked .sd-toggle__thumb{transform:translateX(16px)}sd-toggle .sd-toggle--disabled{cursor:not-allowed}sd-toggle .sd-toggle--disabled.sd-toggle--checked .sd-toggle__track{background:#bbdaff}sd-toggle .sd-toggle--disabled.sd-toggle--unchecked .sd-toggle__track{background:#eeeeee}sd-toggle .sd-toggle:hover:not(.sd-toggle--disabled).sd-toggle--checked .sd-toggle__track{background:#005cc9}sd-toggle .sd-toggle:hover:not(.sd-toggle--disabled).sd-toggle--unchecked .sd-toggle__track{background:#bbbbbb}`;
|
|
9477
9949
|
|
|
9478
9950
|
class SdToggle {
|
|
9479
9951
|
constructor(hostRef) {
|
|
@@ -9509,9 +9981,9 @@ class SdToggle {
|
|
|
9509
9981
|
this.sdChange.emit(newValue);
|
|
9510
9982
|
};
|
|
9511
9983
|
render() {
|
|
9512
|
-
return (hAsync("label", { key: '
|
|
9984
|
+
return (hAsync("label", { key: 'b21fce826c30404ab3f30cc27a1866d9a7745402', "aria-checked": this.isChecked.toString(), "aria-disabled": this.disabled.toString(), role: "switch", "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: '8bac810392c4aa1f0f04f13b37bc73210d70fe98', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: '2d2949701bb4bf24dbbce2e296d8cb82606f6a62', class: "sd-toggle__label" }, this.label), hAsync("div", { key: '42d39942bd284f3de320735a182bd53569782e1f', class: "sd-toggle__track" }, hAsync("div", { key: 'b2decb4e6c1a1e9459621ea409fec24cf8695f4b', class: "sd-toggle__thumb" }))));
|
|
9513
9985
|
}
|
|
9514
|
-
static get style() { return sdToggleCss; }
|
|
9986
|
+
static get style() { return sdToggleCss(); }
|
|
9515
9987
|
static get cmpMeta() { return {
|
|
9516
9988
|
"$flags$": 768,
|
|
9517
9989
|
"$tagName$": "sd-toggle",
|
|
@@ -9527,7 +9999,64 @@ class SdToggle {
|
|
|
9527
9999
|
}; }
|
|
9528
10000
|
}
|
|
9529
10001
|
|
|
9530
|
-
const
|
|
10002
|
+
const sdToggleButtonCss = () => `sd-toggle-button{display:inline-block;line-height:0}.sd-toggle-button{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:4px 12px;gap:6px;border-radius:14px;border:1px solid #888888;background-color:#ffffff;color:#737373;font-size:12px;line-height:20px;font-weight:400;cursor:pointer;transition:border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;white-space:nowrap;user-select:none;box-sizing:border-box}.sd-toggle-button--active{border-color:#0075ff;color:#0075ff}.sd-toggle-button--disabled{background-color:#eeeeee;border-color:#cccccc;color:#888888}.sd-toggle-button--disabled.sd-toggle-button--active{background-color:#eeeeee;border-color:#cccccc;color:#888888}.sd-toggle-button:hover:not(.sd-toggle-button--disabled):not(.sd-toggle-button--active){border-color:#737373}.sd-toggle-button:hover:not(.sd-toggle-button--disabled).sd-toggle-button--active{border-color:#005cc9;color:#005cc9}`;
|
|
10003
|
+
|
|
10004
|
+
class SdToggleButton {
|
|
10005
|
+
constructor(hostRef) {
|
|
10006
|
+
registerInstance(this, hostRef);
|
|
10007
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
10008
|
+
}
|
|
10009
|
+
value = false;
|
|
10010
|
+
label = '';
|
|
10011
|
+
disabled = false;
|
|
10012
|
+
isActive = false;
|
|
10013
|
+
sdChange;
|
|
10014
|
+
componentWillLoad() {
|
|
10015
|
+
this.updateActiveState(this.value);
|
|
10016
|
+
}
|
|
10017
|
+
componentWillRender() {
|
|
10018
|
+
this.updateActiveState(this.value);
|
|
10019
|
+
}
|
|
10020
|
+
updateActiveState(value) {
|
|
10021
|
+
this.isActive = value;
|
|
10022
|
+
}
|
|
10023
|
+
get buttonClasses() {
|
|
10024
|
+
const classes = ['sd-toggle-button'];
|
|
10025
|
+
if (this.isActive) {
|
|
10026
|
+
classes.push('sd-toggle-button--active');
|
|
10027
|
+
}
|
|
10028
|
+
if (this.disabled) {
|
|
10029
|
+
classes.push('sd-toggle-button--disabled');
|
|
10030
|
+
}
|
|
10031
|
+
return classes.join(' ');
|
|
10032
|
+
}
|
|
10033
|
+
handleChange = () => {
|
|
10034
|
+
if (this.disabled)
|
|
10035
|
+
return;
|
|
10036
|
+
const newValue = !this.value;
|
|
10037
|
+
this.value = newValue;
|
|
10038
|
+
this.sdChange.emit(newValue);
|
|
10039
|
+
};
|
|
10040
|
+
render() {
|
|
10041
|
+
return (hAsync("label", { key: 'ffa8699908132e9865ccd5b0dffafe6aa1265d8f', class: this.buttonClasses, role: "button", "aria-pressed": this.isActive.toString(), "aria-disabled": this.disabled.toString(), "aria-label": this.label || 'toggle button' }, this.label, hAsync("input", { key: '772f24705287a4e7efac5f736b784dd3d9c0bf4d', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
10042
|
+
}
|
|
10043
|
+
static get style() { return sdToggleButtonCss(); }
|
|
10044
|
+
static get cmpMeta() { return {
|
|
10045
|
+
"$flags$": 768,
|
|
10046
|
+
"$tagName$": "sd-toggle-button",
|
|
10047
|
+
"$members$": {
|
|
10048
|
+
"value": [1540],
|
|
10049
|
+
"label": [1],
|
|
10050
|
+
"disabled": [4],
|
|
10051
|
+
"isActive": [32]
|
|
10052
|
+
},
|
|
10053
|
+
"$listeners$": undefined,
|
|
10054
|
+
"$lazyBundleId$": "-",
|
|
10055
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
10056
|
+
}; }
|
|
10057
|
+
}
|
|
10058
|
+
|
|
10059
|
+
const sdTooltipCss = () => `sd-tooltip [slot=content]{display:none}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.sd-tooltip-menu{width:fit-content;padding:8px 16px;border-radius:4px;font-size:12px;position:relative;box-sizing:border-box;display:flex;align-items:start;justify-content:center;gap:12px}.sd-tooltip-menu--with-close{padding-right:12px !important}.sd-tooltip-menu__arrow{position:absolute;display:flex;width:9.6px;height:7.2px}.sd-tooltip-menu__arrow svg{width:100%;height:100%}.sd-tooltip-menu__arrow--top{bottom:-7.2px;left:50%;transform:translateX(-50%)}.sd-tooltip-menu__arrow--bottom{top:-7.2px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-tooltip-menu__arrow--left{right:-7.2px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-tooltip-menu__arrow--right{left:-7.2px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-tooltip-menu__content{line-height:20px;font-weight:500}.sd-tooltip-menu__content p{margin:0}.sd-tooltip-menu__close-button{padding-top:4px;display:flex}.sd-tooltip-menu__close-button button{padding:0;background:none;border:none;cursor:pointer}`;
|
|
9531
10060
|
|
|
9532
10061
|
class SdTooltip {
|
|
9533
10062
|
constructor(hostRef) {
|
|
@@ -9575,22 +10104,22 @@ class SdTooltip {
|
|
|
9575
10104
|
: {
|
|
9576
10105
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
9577
10106
|
};
|
|
9578
|
-
return (hAsync(Fragment, { key: '
|
|
10107
|
+
return (hAsync(Fragment, { key: 'a4cd9f882795ef5b39a877b004e7d51fccecbfcb' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (hAsync("sd-tooltip-portal", { key: 'b9128e35e1f28869d0d163088f54b631c9104bf9', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, hAsync("div", { key: '0a6db1e8478f25fd43735ac0cd8977ce2bce5ef6', class: {
|
|
9579
10108
|
'sd-tooltip-menu': true,
|
|
9580
10109
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
9581
10110
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
9582
10111
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
9583
10112
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9584
10113
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
9585
|
-
} }, hAsync("i", { key: '
|
|
10114
|
+
} }, hAsync("i", { key: '176b79ce7db54479f2690aca9ae98252e1dfacd4', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'aa1f0d7da5135713d1d51ed2852210895d707931', class: {
|
|
9586
10115
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9587
|
-
} })), hAsync("div", { key: '
|
|
10116
|
+
} })), hAsync("div", { key: '147d42745d18180e92a81ed60404697afd6ea1e5', class: "sd-tooltip-menu__content", ref: el => {
|
|
9588
10117
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
9589
10118
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
9590
10119
|
}
|
|
9591
|
-
} }, !this.slotContent && hAsync("span", { key: '
|
|
10120
|
+
} }, !this.slotContent && hAsync("span", { key: '6204dc0ed996aa8c70cbb12a1388ed8ebce20552' }, this.el.textContent)), this.useClose && (hAsync("div", { key: '7cb4aebb0077b2b17b78e2b2f82cfd90711cfc5f', class: "sd-tooltip-menu__close-button" }, hAsync("button", { key: 'f14b75687492169c4c24e7840c9e0907b2161ea2', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: 'fcf6ca6fa0c2a349ef0a6710399ab27e5ceffd3f', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
9592
10121
|
}
|
|
9593
|
-
static get style() { return sdTooltipCss; }
|
|
10122
|
+
static get style() { return sdTooltipCss(); }
|
|
9594
10123
|
static get cmpMeta() { return {
|
|
9595
10124
|
"$flags$": 768,
|
|
9596
10125
|
"$tagName$": "sd-tooltip",
|
|
@@ -9764,7 +10293,7 @@ class SdTooltipPortal {
|
|
|
9764
10293
|
this.sdClose.emit();
|
|
9765
10294
|
}
|
|
9766
10295
|
render() {
|
|
9767
|
-
return hAsync("slot", { key: '
|
|
10296
|
+
return hAsync("slot", { key: 'e6c37c753808b41beeeefa5f04bdf543a48eaa05' });
|
|
9768
10297
|
}
|
|
9769
10298
|
static get cmpMeta() { return {
|
|
9770
10299
|
"$flags$": 777,
|
|
@@ -9783,16 +10312,16 @@ class SdTooltipPortal {
|
|
|
9783
10312
|
}; }
|
|
9784
10313
|
}
|
|
9785
10314
|
|
|
9786
|
-
const sdTrCss =
|
|
10315
|
+
const sdTrCss = () => `sd-tr{display:table-row}`;
|
|
9787
10316
|
|
|
9788
10317
|
class SdTr {
|
|
9789
10318
|
constructor(hostRef) {
|
|
9790
10319
|
registerInstance(this, hostRef);
|
|
9791
10320
|
}
|
|
9792
10321
|
render() {
|
|
9793
|
-
return (hAsync(Host, { key: '
|
|
10322
|
+
return (hAsync(Host, { key: '228bb6d6b5225bd035cce96cd817beb9e2734ab4', role: "row" }, hAsync("slot", { key: '8906dfdeb89afb1028a30a5b16b034f6c2ba67b9' })));
|
|
9794
10323
|
}
|
|
9795
|
-
static get style() { return sdTrCss; }
|
|
10324
|
+
static get style() { return sdTrCss(); }
|
|
9796
10325
|
static get cmpMeta() { return {
|
|
9797
10326
|
"$flags$": 260,
|
|
9798
10327
|
"$tagName$": "sd-tr",
|
|
@@ -9811,6 +10340,7 @@ registerComponents([
|
|
|
9811
10340
|
SdDateBox,
|
|
9812
10341
|
SdDatePicker,
|
|
9813
10342
|
SdDateRangePicker,
|
|
10343
|
+
SdFilePicker,
|
|
9814
10344
|
SdGuide,
|
|
9815
10345
|
SdIcon,
|
|
9816
10346
|
SdInput,
|
|
@@ -9820,6 +10350,7 @@ registerComponents([
|
|
|
9820
10350
|
SdPopover,
|
|
9821
10351
|
SdPortal,
|
|
9822
10352
|
SdProgress,
|
|
10353
|
+
SdRadioButtonGroup,
|
|
9823
10354
|
SdRadioGroup,
|
|
9824
10355
|
SdSelect,
|
|
9825
10356
|
SdSelectMultiple,
|
|
@@ -9828,11 +10359,14 @@ registerComponents([
|
|
|
9828
10359
|
SdSelectOptionGroup,
|
|
9829
10360
|
SdTable$1,
|
|
9830
10361
|
SdTable,
|
|
10362
|
+
SdTabs,
|
|
9831
10363
|
SdTag,
|
|
9832
10364
|
SdTbody,
|
|
9833
10365
|
SdTd,
|
|
9834
10366
|
SdTh,
|
|
10367
|
+
SdToastMessage,
|
|
9835
10368
|
SdToggle,
|
|
10369
|
+
SdToggleButton,
|
|
9836
10370
|
SdTooltip,
|
|
9837
10371
|
SdTooltipPortal,
|
|
9838
10372
|
SdTr,
|
|
@@ -9848,100 +10382,50 @@ exports.hydrateApp = hydrateApp;
|
|
|
9848
10382
|
hydrateAppClosure($stencilWindow);
|
|
9849
10383
|
}
|
|
9850
10384
|
|
|
9851
|
-
// src/app-data/index.ts
|
|
9852
|
-
var BUILD = {
|
|
9853
|
-
allRenderFn: false,
|
|
9854
|
-
element: true,
|
|
9855
|
-
event: true,
|
|
9856
|
-
hasRenderFn: true,
|
|
9857
|
-
hostListener: true,
|
|
9858
|
-
hostListenerTargetWindow: true,
|
|
9859
|
-
hostListenerTargetDocument: true,
|
|
9860
|
-
hostListenerTargetBody: true,
|
|
9861
|
-
hostListenerTargetParent: false,
|
|
9862
|
-
hostListenerTarget: true,
|
|
9863
|
-
member: true,
|
|
9864
|
-
method: true,
|
|
9865
|
-
mode: true,
|
|
9866
|
-
observeAttribute: true,
|
|
9867
|
-
prop: true,
|
|
9868
|
-
propMutable: true,
|
|
9869
|
-
reflect: true,
|
|
9870
|
-
scoped: true,
|
|
9871
|
-
shadowDom: true,
|
|
9872
|
-
slot: true,
|
|
9873
|
-
cssAnnotations: true,
|
|
9874
|
-
state: true,
|
|
9875
|
-
style: true,
|
|
9876
|
-
formAssociated: false,
|
|
9877
|
-
svg: true,
|
|
9878
|
-
updatable: true,
|
|
9879
|
-
vdomAttribute: true,
|
|
9880
|
-
vdomXlink: true,
|
|
9881
|
-
vdomClass: true,
|
|
9882
|
-
vdomFunctional: true,
|
|
9883
|
-
vdomKey: true,
|
|
9884
|
-
vdomListener: true,
|
|
9885
|
-
vdomRef: true,
|
|
9886
|
-
vdomPropOrAttr: true,
|
|
9887
|
-
vdomRender: true,
|
|
9888
|
-
vdomStyle: true,
|
|
9889
|
-
vdomText: true,
|
|
9890
|
-
propChangeCallback: true,
|
|
9891
|
-
taskQueue: true,
|
|
9892
|
-
hotModuleReplacement: false,
|
|
9893
|
-
isDebug: false,
|
|
9894
|
-
isDev: false,
|
|
9895
|
-
isTesting: false,
|
|
9896
|
-
hydrateServerSide: false,
|
|
9897
|
-
hydrateClientSide: false,
|
|
9898
|
-
lifecycleDOMEvents: false,
|
|
9899
|
-
lazyLoad: false,
|
|
9900
|
-
profile: false,
|
|
9901
|
-
slotRelocation: true,
|
|
9902
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9903
|
-
appendChildSlotFix: false,
|
|
9904
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9905
|
-
cloneNodeFix: false,
|
|
9906
|
-
hydratedAttribute: false,
|
|
9907
|
-
hydratedClass: true,
|
|
9908
|
-
// TODO(STENCIL-1305): remove this option
|
|
9909
|
-
scriptDataOpts: false,
|
|
9910
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9911
|
-
scopedSlotTextContentFix: false,
|
|
9912
|
-
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
9913
|
-
shadowDomShim: false,
|
|
9914
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9915
|
-
slotChildNodesFix: false,
|
|
9916
|
-
invisiblePrehydration: true,
|
|
9917
|
-
propBoolean: true,
|
|
9918
|
-
propNumber: true,
|
|
9919
|
-
propString: true,
|
|
9920
|
-
constructableCSS: true,
|
|
9921
|
-
devTools: false,
|
|
9922
|
-
shadowDelegatesFocus: true,
|
|
9923
|
-
initializeNextTick: false,
|
|
9924
|
-
asyncLoading: true,
|
|
9925
|
-
asyncQueue: false,
|
|
9926
|
-
transformTagName: false,
|
|
9927
|
-
attachStyles: true,
|
|
9928
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9929
|
-
experimentalSlotFixes: false
|
|
9930
|
-
};
|
|
9931
|
-
var Env = {};
|
|
9932
|
-
var NAMESPACE = (
|
|
9933
|
-
/* default */
|
|
9934
|
-
"app"
|
|
9935
|
-
);
|
|
9936
|
-
|
|
9937
10385
|
/*
|
|
9938
|
-
Stencil Hydrate Runner v4.
|
|
10386
|
+
Stencil Hydrate Runner v4.39.0 | MIT Licensed | https://stenciljs.com
|
|
9939
10387
|
*/
|
|
9940
10388
|
var __defProp = Object.defineProperty;
|
|
9941
10389
|
var __export = (target, all) => {
|
|
9942
10390
|
for (var name in all)
|
|
9943
10391
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9944
10392
|
};
|
|
10393
|
+
var Build = {
|
|
10394
|
+
isDev: BUILD.isDev ? true : false,
|
|
10395
|
+
isBrowser: true,
|
|
10396
|
+
isServer: false,
|
|
10397
|
+
isTesting: BUILD.isTesting ? true : false
|
|
10398
|
+
};
|
|
10399
|
+
|
|
10400
|
+
// src/utils/constants.ts
|
|
10401
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
10402
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
10403
|
+
PrimitiveType2["Null"] = "null";
|
|
10404
|
+
PrimitiveType2["String"] = "string";
|
|
10405
|
+
PrimitiveType2["Number"] = "number";
|
|
10406
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
10407
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
10408
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
10409
|
+
return PrimitiveType2;
|
|
10410
|
+
})(PrimitiveType || {});
|
|
10411
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
10412
|
+
NonPrimitiveType2["Array"] = "array";
|
|
10413
|
+
NonPrimitiveType2["Date"] = "date";
|
|
10414
|
+
NonPrimitiveType2["Map"] = "map";
|
|
10415
|
+
NonPrimitiveType2["Object"] = "object";
|
|
10416
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
10417
|
+
NonPrimitiveType2["Set"] = "set";
|
|
10418
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
10419
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
10420
|
+
return NonPrimitiveType2;
|
|
10421
|
+
})(NonPrimitiveType || {});
|
|
10422
|
+
var TYPE_CONSTANT = "type";
|
|
10423
|
+
var VALUE_CONSTANT = "value";
|
|
10424
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
10425
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
10426
|
+
"%cstencil",
|
|
10427
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
10428
|
+
];
|
|
9945
10429
|
|
|
9946
10430
|
// src/runtime/runtime-constants.ts
|
|
9947
10431
|
var CONTENT_REF_ID = "r";
|
|
@@ -9952,310 +10436,824 @@ var HYDRATE_ID = "s-id";
|
|
|
9952
10436
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
9953
10437
|
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
9954
10438
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
var attrHandler = {
|
|
9958
|
-
get(obj, prop) {
|
|
9959
|
-
if (prop in obj) {
|
|
9960
|
-
return obj[prop];
|
|
9961
|
-
}
|
|
9962
|
-
if (typeof prop !== "symbol" && !isNaN(prop)) {
|
|
9963
|
-
return obj.__items[prop];
|
|
9964
|
-
}
|
|
9965
|
-
return void 0;
|
|
9966
|
-
}
|
|
10439
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
10440
|
+
var H = win.HTMLElement || class {
|
|
9967
10441
|
};
|
|
9968
|
-
var
|
|
9969
|
-
var
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
}
|
|
9974
|
-
get length() {
|
|
9975
|
-
return this.__items.length;
|
|
9976
|
-
}
|
|
9977
|
-
item(index) {
|
|
9978
|
-
return this.__items[index] || null;
|
|
9979
|
-
}
|
|
9980
|
-
setNamedItem(attr) {
|
|
9981
|
-
attr.namespaceURI = null;
|
|
9982
|
-
this.setNamedItemNS(attr);
|
|
10442
|
+
var supportsShadow = BUILD.shadowDom;
|
|
10443
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
10444
|
+
try {
|
|
10445
|
+
new CSSStyleSheet();
|
|
10446
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
10447
|
+
} catch (e) {
|
|
9983
10448
|
}
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
10449
|
+
return false;
|
|
10450
|
+
})() : false;
|
|
10451
|
+
|
|
10452
|
+
// src/utils/helpers.ts
|
|
10453
|
+
var isString = (v) => typeof v === "string";
|
|
10454
|
+
|
|
10455
|
+
// src/utils/local-value.ts
|
|
10456
|
+
var LocalValue = class _LocalValue {
|
|
10457
|
+
constructor(type, value) {
|
|
10458
|
+
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
10459
|
+
this.type = type;
|
|
9991
10460
|
} else {
|
|
9992
|
-
this.
|
|
9993
|
-
|
|
9994
|
-
}
|
|
9995
|
-
getNamedItem(attrName) {
|
|
9996
|
-
if (this.caseInsensitive) {
|
|
9997
|
-
attrName = attrName.toLowerCase();
|
|
10461
|
+
this.type = type;
|
|
10462
|
+
this.value = value;
|
|
9998
10463
|
}
|
|
9999
|
-
return this.getNamedItemNS(null, attrName);
|
|
10000
10464
|
}
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10465
|
+
/**
|
|
10466
|
+
* Creates a new LocalValue object with a string value.
|
|
10467
|
+
*
|
|
10468
|
+
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
10469
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10470
|
+
*/
|
|
10471
|
+
static createStringValue(value) {
|
|
10472
|
+
return new _LocalValue("string" /* String */, value);
|
|
10004
10473
|
}
|
|
10005
|
-
|
|
10006
|
-
|
|
10474
|
+
/**
|
|
10475
|
+
* Creates a new LocalValue object with a number value.
|
|
10476
|
+
*
|
|
10477
|
+
* @param {number} value - The number value.
|
|
10478
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10479
|
+
*/
|
|
10480
|
+
static createNumberValue(value) {
|
|
10481
|
+
return new _LocalValue("number" /* Number */, value);
|
|
10007
10482
|
}
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10483
|
+
/**
|
|
10484
|
+
* Creates a new LocalValue object with a special number value.
|
|
10485
|
+
*
|
|
10486
|
+
* @param {number} value - The value of the special number.
|
|
10487
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10488
|
+
*/
|
|
10489
|
+
static createSpecialNumberValue(value) {
|
|
10490
|
+
if (Number.isNaN(value)) {
|
|
10491
|
+
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
10014
10492
|
}
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
done: i === this.length,
|
|
10021
|
-
value: this.item(i++)
|
|
10022
|
-
})
|
|
10023
|
-
};
|
|
10024
|
-
}
|
|
10025
|
-
get [Symbol.toStringTag]() {
|
|
10026
|
-
return "MockAttributeMap";
|
|
10027
|
-
}
|
|
10028
|
-
};
|
|
10029
|
-
function getNamespaceURI(namespaceURI) {
|
|
10030
|
-
return namespaceURI === XLINK_NS ? null : namespaceURI;
|
|
10031
|
-
}
|
|
10032
|
-
function cloneAttributes(srcAttrs, sortByName = false) {
|
|
10033
|
-
const dstAttrs = new MockAttributeMap(srcAttrs.caseInsensitive);
|
|
10034
|
-
if (srcAttrs != null) {
|
|
10035
|
-
const attrLen = srcAttrs.length;
|
|
10036
|
-
if (sortByName && attrLen > 1) {
|
|
10037
|
-
const sortedAttrs = [];
|
|
10038
|
-
for (let i = 0; i < attrLen; i++) {
|
|
10039
|
-
const srcAttr = srcAttrs.item(i);
|
|
10040
|
-
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
10041
|
-
sortedAttrs.push(dstAttr);
|
|
10042
|
-
}
|
|
10043
|
-
sortedAttrs.sort(sortAttributes).forEach((attr) => {
|
|
10044
|
-
dstAttrs.setNamedItemNS(attr);
|
|
10045
|
-
});
|
|
10046
|
-
} else {
|
|
10047
|
-
for (let i = 0; i < attrLen; i++) {
|
|
10048
|
-
const srcAttr = srcAttrs.item(i);
|
|
10049
|
-
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
10050
|
-
dstAttrs.setNamedItemNS(dstAttr);
|
|
10051
|
-
}
|
|
10493
|
+
if (Object.is(value, -0)) {
|
|
10494
|
+
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
10495
|
+
}
|
|
10496
|
+
if (value === Infinity) {
|
|
10497
|
+
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
10052
10498
|
}
|
|
10499
|
+
if (value === -Infinity) {
|
|
10500
|
+
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
10501
|
+
}
|
|
10502
|
+
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
10053
10503
|
}
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
}
|
|
10061
|
-
var MockAttr = class {
|
|
10062
|
-
constructor(attrName, attrValue, namespaceURI = null) {
|
|
10063
|
-
this._name = attrName;
|
|
10064
|
-
this._value = String(attrValue);
|
|
10065
|
-
this._namespaceURI = namespaceURI;
|
|
10504
|
+
/**
|
|
10505
|
+
* Creates a new LocalValue object with an undefined value.
|
|
10506
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10507
|
+
*/
|
|
10508
|
+
static createUndefinedValue() {
|
|
10509
|
+
return new _LocalValue("undefined" /* Undefined */);
|
|
10066
10510
|
}
|
|
10067
|
-
|
|
10068
|
-
|
|
10511
|
+
/**
|
|
10512
|
+
* Creates a new LocalValue object with a null value.
|
|
10513
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10514
|
+
*/
|
|
10515
|
+
static createNullValue() {
|
|
10516
|
+
return new _LocalValue("null" /* Null */);
|
|
10069
10517
|
}
|
|
10070
|
-
|
|
10071
|
-
|
|
10518
|
+
/**
|
|
10519
|
+
* Creates a new LocalValue object with a boolean value.
|
|
10520
|
+
*
|
|
10521
|
+
* @param {boolean} value - The boolean value.
|
|
10522
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10523
|
+
*/
|
|
10524
|
+
static createBooleanValue(value) {
|
|
10525
|
+
return new _LocalValue("boolean" /* Boolean */, value);
|
|
10072
10526
|
}
|
|
10073
|
-
|
|
10074
|
-
|
|
10527
|
+
/**
|
|
10528
|
+
* Creates a new LocalValue object with a BigInt value.
|
|
10529
|
+
*
|
|
10530
|
+
* @param {BigInt} value - The BigInt value.
|
|
10531
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10532
|
+
*/
|
|
10533
|
+
static createBigIntValue(value) {
|
|
10534
|
+
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
10075
10535
|
}
|
|
10076
|
-
|
|
10077
|
-
|
|
10536
|
+
/**
|
|
10537
|
+
* Creates a new LocalValue object with an array.
|
|
10538
|
+
*
|
|
10539
|
+
* @param {Array} value - The array.
|
|
10540
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10541
|
+
*/
|
|
10542
|
+
static createArrayValue(value) {
|
|
10543
|
+
return new _LocalValue("array" /* Array */, value);
|
|
10078
10544
|
}
|
|
10079
|
-
|
|
10080
|
-
|
|
10545
|
+
/**
|
|
10546
|
+
* Creates a new LocalValue object with date value.
|
|
10547
|
+
*
|
|
10548
|
+
* @param {string} value - The date.
|
|
10549
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10550
|
+
*/
|
|
10551
|
+
static createDateValue(value) {
|
|
10552
|
+
return new _LocalValue("date" /* Date */, value);
|
|
10081
10553
|
}
|
|
10082
|
-
|
|
10083
|
-
|
|
10554
|
+
/**
|
|
10555
|
+
* Creates a new LocalValue object of map value.
|
|
10556
|
+
* @param {Map} map - The map.
|
|
10557
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10558
|
+
*/
|
|
10559
|
+
static createMapValue(map2) {
|
|
10560
|
+
const value = [];
|
|
10561
|
+
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
10562
|
+
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
10563
|
+
});
|
|
10564
|
+
return new _LocalValue("map" /* Map */, value);
|
|
10084
10565
|
}
|
|
10085
|
-
|
|
10086
|
-
|
|
10566
|
+
/**
|
|
10567
|
+
* Creates a new LocalValue object from the passed object.
|
|
10568
|
+
*
|
|
10569
|
+
* @param object the object to create a LocalValue from
|
|
10570
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10571
|
+
*/
|
|
10572
|
+
static createObjectValue(object) {
|
|
10573
|
+
const value = [];
|
|
10574
|
+
Object.entries(object).forEach(([key, val]) => {
|
|
10575
|
+
value.push([key, _LocalValue.getArgument(val)]);
|
|
10576
|
+
});
|
|
10577
|
+
return new _LocalValue("object" /* Object */, value);
|
|
10087
10578
|
}
|
|
10088
|
-
|
|
10089
|
-
|
|
10579
|
+
/**
|
|
10580
|
+
* Creates a new LocalValue object of regular expression value.
|
|
10581
|
+
*
|
|
10582
|
+
* @param {string} value - The value of the regular expression.
|
|
10583
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10584
|
+
*/
|
|
10585
|
+
static createRegularExpressionValue(value) {
|
|
10586
|
+
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
10090
10587
|
}
|
|
10091
|
-
|
|
10092
|
-
|
|
10588
|
+
/**
|
|
10589
|
+
* Creates a new LocalValue object with the specified value.
|
|
10590
|
+
* @param {Set} value - The value to be set.
|
|
10591
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10592
|
+
*/
|
|
10593
|
+
static createSetValue(value) {
|
|
10594
|
+
return new _LocalValue("set" /* Set */, value);
|
|
10093
10595
|
}
|
|
10094
|
-
|
|
10095
|
-
|
|
10596
|
+
/**
|
|
10597
|
+
* Creates a new LocalValue object with the given channel value
|
|
10598
|
+
*
|
|
10599
|
+
* @param {ChannelValue} value - The channel value.
|
|
10600
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10601
|
+
*/
|
|
10602
|
+
static createChannelValue(value) {
|
|
10603
|
+
return new _LocalValue("channel" /* Channel */, value);
|
|
10604
|
+
}
|
|
10605
|
+
/**
|
|
10606
|
+
* Creates a new LocalValue object with a Symbol value.
|
|
10607
|
+
*
|
|
10608
|
+
* @param {Symbol} symbol - The Symbol value
|
|
10609
|
+
* @returns {LocalValue} - The created LocalValue object
|
|
10610
|
+
*/
|
|
10611
|
+
static createSymbolValue(symbol) {
|
|
10612
|
+
const description = symbol.description || "Symbol()";
|
|
10613
|
+
return new _LocalValue("symbol" /* Symbol */, description);
|
|
10614
|
+
}
|
|
10615
|
+
static getArgument(argument) {
|
|
10616
|
+
const type = typeof argument;
|
|
10617
|
+
switch (type) {
|
|
10618
|
+
case "string" /* String */:
|
|
10619
|
+
return _LocalValue.createStringValue(argument);
|
|
10620
|
+
case "number" /* Number */:
|
|
10621
|
+
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
10622
|
+
return _LocalValue.createSpecialNumberValue(argument);
|
|
10623
|
+
}
|
|
10624
|
+
return _LocalValue.createNumberValue(argument);
|
|
10625
|
+
case "boolean" /* Boolean */:
|
|
10626
|
+
return _LocalValue.createBooleanValue(argument);
|
|
10627
|
+
case "bigint" /* BigInt */:
|
|
10628
|
+
return _LocalValue.createBigIntValue(argument);
|
|
10629
|
+
case "undefined" /* Undefined */:
|
|
10630
|
+
return _LocalValue.createUndefinedValue();
|
|
10631
|
+
case "symbol" /* Symbol */:
|
|
10632
|
+
return _LocalValue.createSymbolValue(argument);
|
|
10633
|
+
case "object" /* Object */:
|
|
10634
|
+
if (argument === null) {
|
|
10635
|
+
return _LocalValue.createNullValue();
|
|
10636
|
+
}
|
|
10637
|
+
if (argument instanceof Date) {
|
|
10638
|
+
return _LocalValue.createDateValue(argument);
|
|
10639
|
+
}
|
|
10640
|
+
if (argument instanceof Map) {
|
|
10641
|
+
const map2 = [];
|
|
10642
|
+
argument.forEach((value, key) => {
|
|
10643
|
+
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
10644
|
+
const objectValue = _LocalValue.getArgument(value);
|
|
10645
|
+
map2.push([objectKey, objectValue]);
|
|
10646
|
+
});
|
|
10647
|
+
return _LocalValue.createMapValue(argument);
|
|
10648
|
+
}
|
|
10649
|
+
if (argument instanceof Set) {
|
|
10650
|
+
const set = [];
|
|
10651
|
+
argument.forEach((value) => {
|
|
10652
|
+
set.push(_LocalValue.getArgument(value));
|
|
10653
|
+
});
|
|
10654
|
+
return _LocalValue.createSetValue(set);
|
|
10655
|
+
}
|
|
10656
|
+
if (argument instanceof Array) {
|
|
10657
|
+
const arr = [];
|
|
10658
|
+
argument.forEach((value) => {
|
|
10659
|
+
arr.push(_LocalValue.getArgument(value));
|
|
10660
|
+
});
|
|
10661
|
+
return _LocalValue.createArrayValue(arr);
|
|
10662
|
+
}
|
|
10663
|
+
if (argument instanceof RegExp) {
|
|
10664
|
+
return _LocalValue.createRegularExpressionValue({
|
|
10665
|
+
pattern: argument.source,
|
|
10666
|
+
flags: argument.flags
|
|
10667
|
+
});
|
|
10668
|
+
}
|
|
10669
|
+
return _LocalValue.createObjectValue(argument);
|
|
10670
|
+
}
|
|
10671
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
10672
|
+
}
|
|
10673
|
+
asMap() {
|
|
10674
|
+
return {
|
|
10675
|
+
[TYPE_CONSTANT]: this.type,
|
|
10676
|
+
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
10677
|
+
};
|
|
10096
10678
|
}
|
|
10097
10679
|
};
|
|
10098
10680
|
|
|
10099
|
-
// src/
|
|
10100
|
-
var
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10681
|
+
// src/utils/message-utils.ts
|
|
10682
|
+
var catchError = (diagnostics, err2, msg) => {
|
|
10683
|
+
const diagnostic = {
|
|
10684
|
+
level: "error",
|
|
10685
|
+
type: "build",
|
|
10686
|
+
header: "Build Error",
|
|
10687
|
+
messageText: "build error",
|
|
10688
|
+
lines: []
|
|
10689
|
+
};
|
|
10690
|
+
if (isString(msg)) {
|
|
10691
|
+
diagnostic.messageText = msg.length ? msg : "UNKNOWN ERROR";
|
|
10692
|
+
} else if (err2 != null) {
|
|
10693
|
+
if (err2.stack != null) {
|
|
10694
|
+
diagnostic.messageText = err2.stack.toString();
|
|
10108
10695
|
} else {
|
|
10109
|
-
|
|
10696
|
+
if (err2.message != null) {
|
|
10697
|
+
diagnostic.messageText = err2.message.length ? err2.message : "UNKNOWN ERROR";
|
|
10698
|
+
} else {
|
|
10699
|
+
diagnostic.messageText = err2.toString();
|
|
10700
|
+
}
|
|
10110
10701
|
}
|
|
10111
10702
|
}
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
return String(this._styles.get(prop) || "");
|
|
10703
|
+
if (diagnostics != null && !shouldIgnoreError(diagnostic.messageText)) {
|
|
10704
|
+
diagnostics.push(diagnostic);
|
|
10115
10705
|
}
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10706
|
+
return diagnostic;
|
|
10707
|
+
};
|
|
10708
|
+
var hasError = (diagnostics) => {
|
|
10709
|
+
if (diagnostics == null || diagnostics.length === 0) {
|
|
10710
|
+
return false;
|
|
10119
10711
|
}
|
|
10120
|
-
|
|
10121
|
-
|
|
10712
|
+
return diagnostics.some((d) => d.level === "error" && d.type !== "runtime");
|
|
10713
|
+
};
|
|
10714
|
+
var shouldIgnoreError = (msg) => {
|
|
10715
|
+
return msg === TASK_CANCELED_MSG;
|
|
10716
|
+
};
|
|
10717
|
+
var TASK_CANCELED_MSG = `task canceled`;
|
|
10718
|
+
|
|
10719
|
+
// src/utils/regular-expression.ts
|
|
10720
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
10721
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
10722
|
+
};
|
|
10723
|
+
|
|
10724
|
+
// src/utils/remote-value.ts
|
|
10725
|
+
var RemoteValue = class _RemoteValue {
|
|
10726
|
+
/**
|
|
10727
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
10728
|
+
*
|
|
10729
|
+
* @param serialized The serialized LocalValue object
|
|
10730
|
+
* @returns The original JavaScript value/object
|
|
10731
|
+
*/
|
|
10732
|
+
static fromLocalValue(serialized) {
|
|
10733
|
+
const type = serialized[TYPE_CONSTANT];
|
|
10734
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
10735
|
+
switch (type) {
|
|
10736
|
+
case "string" /* String */:
|
|
10737
|
+
return value;
|
|
10738
|
+
case "boolean" /* Boolean */:
|
|
10739
|
+
return value;
|
|
10740
|
+
case "bigint" /* BigInt */:
|
|
10741
|
+
return BigInt(value);
|
|
10742
|
+
case "undefined" /* Undefined */:
|
|
10743
|
+
return void 0;
|
|
10744
|
+
case "null" /* Null */:
|
|
10745
|
+
return null;
|
|
10746
|
+
case "number" /* Number */:
|
|
10747
|
+
if (value === "NaN") return NaN;
|
|
10748
|
+
if (value === "-0") return -0;
|
|
10749
|
+
if (value === "Infinity") return Infinity;
|
|
10750
|
+
if (value === "-Infinity") return -Infinity;
|
|
10751
|
+
return value;
|
|
10752
|
+
case "array" /* Array */:
|
|
10753
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
10754
|
+
case "date" /* Date */:
|
|
10755
|
+
return new Date(value);
|
|
10756
|
+
case "map" /* Map */:
|
|
10757
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
10758
|
+
for (const [key, val] of value) {
|
|
10759
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
10760
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
10761
|
+
map2.set(deserializedKey, deserializedValue);
|
|
10762
|
+
}
|
|
10763
|
+
return map2;
|
|
10764
|
+
case "object" /* Object */:
|
|
10765
|
+
const obj = {};
|
|
10766
|
+
for (const [key, val] of value) {
|
|
10767
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
10768
|
+
}
|
|
10769
|
+
return obj;
|
|
10770
|
+
case "regexp" /* RegularExpression */:
|
|
10771
|
+
const { pattern, flags } = value;
|
|
10772
|
+
return new RegExp(pattern, flags);
|
|
10773
|
+
case "set" /* Set */:
|
|
10774
|
+
const set = /* @__PURE__ */ new Set();
|
|
10775
|
+
for (const item of value) {
|
|
10776
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
10777
|
+
}
|
|
10778
|
+
return set;
|
|
10779
|
+
case "symbol" /* Symbol */:
|
|
10780
|
+
return Symbol(value);
|
|
10781
|
+
default:
|
|
10782
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
10783
|
+
}
|
|
10122
10784
|
}
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10785
|
+
/**
|
|
10786
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
10787
|
+
*
|
|
10788
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
10789
|
+
* @returns Array of deserialized JavaScript values
|
|
10790
|
+
*/
|
|
10791
|
+
static fromLocalValueArray(serializedValues) {
|
|
10792
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
10129
10793
|
}
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10794
|
+
/**
|
|
10795
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
10796
|
+
*
|
|
10797
|
+
* @param obj Object to verify
|
|
10798
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
10799
|
+
*/
|
|
10800
|
+
static isLocalValueObject(obj) {
|
|
10801
|
+
if (typeof obj !== "object" || obj === null) {
|
|
10802
|
+
return false;
|
|
10134
10803
|
}
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
});
|
|
10804
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
10805
|
+
return false;
|
|
10806
|
+
}
|
|
10807
|
+
const type = obj[TYPE_CONSTANT];
|
|
10808
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
10809
|
+
if (!hasTypeProperty) {
|
|
10810
|
+
return false;
|
|
10811
|
+
}
|
|
10812
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
10813
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
10814
|
+
}
|
|
10815
|
+
return true;
|
|
10148
10816
|
}
|
|
10149
10817
|
};
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
}
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10818
|
+
|
|
10819
|
+
// src/utils/result.ts
|
|
10820
|
+
var result_exports = {};
|
|
10821
|
+
__export(result_exports, {
|
|
10822
|
+
err: () => err,
|
|
10823
|
+
map: () => map,
|
|
10824
|
+
ok: () => ok,
|
|
10825
|
+
unwrap: () => unwrap,
|
|
10826
|
+
unwrapErr: () => unwrapErr
|
|
10827
|
+
});
|
|
10828
|
+
var ok = (value) => ({
|
|
10829
|
+
isOk: true,
|
|
10830
|
+
isErr: false,
|
|
10831
|
+
value
|
|
10832
|
+
});
|
|
10833
|
+
var err = (value) => ({
|
|
10834
|
+
isOk: false,
|
|
10835
|
+
isErr: true,
|
|
10836
|
+
value
|
|
10837
|
+
});
|
|
10838
|
+
function map(result, fn) {
|
|
10839
|
+
if (result.isOk) {
|
|
10840
|
+
const val = fn(result.value);
|
|
10841
|
+
if (val instanceof Promise) {
|
|
10842
|
+
return val.then((newVal) => ok(newVal));
|
|
10164
10843
|
} else {
|
|
10165
|
-
|
|
10844
|
+
return ok(val);
|
|
10166
10845
|
}
|
|
10167
|
-
|
|
10846
|
+
}
|
|
10847
|
+
if (result.isErr) {
|
|
10848
|
+
const value = result.value;
|
|
10849
|
+
return err(value);
|
|
10850
|
+
}
|
|
10851
|
+
throw "should never get here";
|
|
10852
|
+
}
|
|
10853
|
+
var unwrap = (result) => {
|
|
10854
|
+
if (result.isOk) {
|
|
10855
|
+
return result.value;
|
|
10856
|
+
} else {
|
|
10857
|
+
throw result.value;
|
|
10168
10858
|
}
|
|
10169
10859
|
};
|
|
10170
|
-
|
|
10171
|
-
if (
|
|
10172
|
-
|
|
10173
|
-
|
|
10860
|
+
var unwrapErr = (result) => {
|
|
10861
|
+
if (result.isErr) {
|
|
10862
|
+
return result.value;
|
|
10863
|
+
} else {
|
|
10864
|
+
throw result.value;
|
|
10174
10865
|
}
|
|
10175
|
-
|
|
10866
|
+
};
|
|
10867
|
+
|
|
10868
|
+
// src/utils/serialize.ts
|
|
10869
|
+
function serializeProperty(value) {
|
|
10870
|
+
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
10871
|
+
return value;
|
|
10872
|
+
}
|
|
10873
|
+
const arg = LocalValue.getArgument(value);
|
|
10874
|
+
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
10176
10875
|
}
|
|
10177
|
-
function
|
|
10178
|
-
if (
|
|
10179
|
-
|
|
10876
|
+
function deserializeProperty(value) {
|
|
10877
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
10878
|
+
return value;
|
|
10180
10879
|
}
|
|
10181
|
-
return
|
|
10880
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
10182
10881
|
}
|
|
10183
10882
|
|
|
10184
|
-
// src/
|
|
10185
|
-
var
|
|
10186
|
-
|
|
10187
|
-
|
|
10883
|
+
// src/utils/util.ts
|
|
10884
|
+
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
10885
|
+
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
|
10886
|
+
var isTsFile = lowerPathParam(
|
|
10887
|
+
(p) => !isDtsFile(p) && (p.endsWith(".ts") || p.endsWith(".mts") || p.endsWith(".cts"))
|
|
10888
|
+
);
|
|
10889
|
+
var isTsxFile = lowerPathParam(
|
|
10890
|
+
(p) => p.endsWith(".tsx") || p.endsWith(".mtsx") || p.endsWith(".ctsx")
|
|
10891
|
+
);
|
|
10892
|
+
var isJsxFile = lowerPathParam(
|
|
10893
|
+
(p) => p.endsWith(".jsx") || p.endsWith(".mjsx") || p.endsWith(".cjsx")
|
|
10894
|
+
);
|
|
10895
|
+
var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") || p.endsWith(".cjs"));
|
|
10896
|
+
|
|
10897
|
+
// src/utils/shadow-css.ts
|
|
10898
|
+
/**
|
|
10899
|
+
* @license
|
|
10900
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
10901
|
+
*
|
|
10902
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
10903
|
+
* found in the LICENSE file at https://angular.io/license
|
|
10904
|
+
*
|
|
10905
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
10906
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
10907
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
10908
|
+
*/
|
|
10909
|
+
var _polyfillHost = "-shadowcsshost";
|
|
10910
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
10911
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
10912
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
10913
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
10914
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
10915
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
10916
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
10917
|
+
var createSupportsRuleRe = (selector) => {
|
|
10918
|
+
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
10919
|
+
return new RegExp(
|
|
10920
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
10921
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
10922
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
10923
|
+
"g"
|
|
10924
|
+
);
|
|
10925
|
+
};
|
|
10926
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
10927
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
10928
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
10929
|
+
|
|
10930
|
+
// src/runtime/mode.ts
|
|
10931
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
10932
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
10933
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
10934
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
10935
|
+
} : globalThis.HTMLElement || class {
|
|
10936
|
+
};
|
|
10937
|
+
|
|
10938
|
+
// src/runtime/tag-transform.ts
|
|
10939
|
+
var tagTransformer = void 0;
|
|
10940
|
+
function transformTag(tag) {
|
|
10941
|
+
if (!tagTransformer) return tag;
|
|
10942
|
+
return tagTransformer(tag);
|
|
10943
|
+
}
|
|
10944
|
+
function setTagTransformer(transformer) {
|
|
10945
|
+
if (tagTransformer) {
|
|
10946
|
+
console.warn(`
|
|
10947
|
+
A tagTransformer has already been set.
|
|
10948
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
10949
|
+
`);
|
|
10188
10950
|
}
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10951
|
+
tagTransformer = transformer;
|
|
10952
|
+
}
|
|
10953
|
+
|
|
10954
|
+
// src/mock-doc/attribute.ts
|
|
10955
|
+
var attrHandler = {
|
|
10956
|
+
get(obj, prop) {
|
|
10957
|
+
if (prop in obj) {
|
|
10958
|
+
return obj[prop];
|
|
10194
10959
|
}
|
|
10195
|
-
if (
|
|
10196
|
-
|
|
10960
|
+
if (typeof prop !== "symbol" && !isNaN(prop)) {
|
|
10961
|
+
return obj.__items[prop];
|
|
10197
10962
|
}
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10963
|
+
return void 0;
|
|
10964
|
+
}
|
|
10965
|
+
};
|
|
10966
|
+
var createAttributeProxy = (caseInsensitive) => new Proxy(new MockAttributeMap(caseInsensitive), attrHandler);
|
|
10967
|
+
var MockAttributeMap = class {
|
|
10968
|
+
constructor(caseInsensitive = false) {
|
|
10969
|
+
this.caseInsensitive = caseInsensitive;
|
|
10970
|
+
this.__items = [];
|
|
10971
|
+
}
|
|
10972
|
+
get length() {
|
|
10973
|
+
return this.__items.length;
|
|
10974
|
+
}
|
|
10975
|
+
item(index) {
|
|
10976
|
+
return this.__items[index] || null;
|
|
10977
|
+
}
|
|
10978
|
+
setNamedItem(attr) {
|
|
10979
|
+
attr.namespaceURI = null;
|
|
10980
|
+
this.setNamedItemNS(attr);
|
|
10981
|
+
}
|
|
10982
|
+
setNamedItemNS(attr) {
|
|
10983
|
+
if (attr != null && attr.value != null) {
|
|
10984
|
+
attr.value = String(attr.value);
|
|
10208
10985
|
}
|
|
10209
|
-
const
|
|
10210
|
-
if (
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
tempDisableCallbacks.add(doc);
|
|
10215
|
-
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
10216
|
-
for (let i = 0; i < host.childNodes.length; i++) {
|
|
10217
|
-
const childNode = host.childNodes[i];
|
|
10218
|
-
childNode.remove();
|
|
10219
|
-
upgradedCmp.appendChild(childNode);
|
|
10220
|
-
}
|
|
10221
|
-
tempDisableCallbacks.delete(doc);
|
|
10222
|
-
if (proxyElements.has(host)) {
|
|
10223
|
-
proxyElements.set(host, upgradedCmp);
|
|
10224
|
-
}
|
|
10225
|
-
}
|
|
10226
|
-
fireConnectedCallback(host);
|
|
10227
|
-
});
|
|
10986
|
+
const existingAttr = this.__items.find((a) => a.name === attr.name && a.namespaceURI === attr.namespaceURI);
|
|
10987
|
+
if (existingAttr != null) {
|
|
10988
|
+
existingAttr.value = attr.value;
|
|
10989
|
+
} else {
|
|
10990
|
+
this.__items.push(attr);
|
|
10228
10991
|
}
|
|
10229
10992
|
}
|
|
10230
|
-
|
|
10231
|
-
if (this.
|
|
10232
|
-
|
|
10233
|
-
if (def != null) {
|
|
10234
|
-
return def.cstr;
|
|
10235
|
-
}
|
|
10993
|
+
getNamedItem(attrName) {
|
|
10994
|
+
if (this.caseInsensitive) {
|
|
10995
|
+
attrName = attrName.toLowerCase();
|
|
10236
10996
|
}
|
|
10237
|
-
return
|
|
10997
|
+
return this.getNamedItemNS(null, attrName);
|
|
10238
10998
|
}
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10999
|
+
getNamedItemNS(namespaceURI, attrName) {
|
|
11000
|
+
namespaceURI = getNamespaceURI(namespaceURI);
|
|
11001
|
+
return this.__items.find((attr) => attr.name === attrName && getNamespaceURI(attr.namespaceURI) === namespaceURI) || null;
|
|
11002
|
+
}
|
|
11003
|
+
removeNamedItem(attr) {
|
|
11004
|
+
this.removeNamedItemNS(attr);
|
|
11005
|
+
}
|
|
11006
|
+
removeNamedItemNS(attr) {
|
|
11007
|
+
for (let i = 0, ii = this.__items.length; i < ii; i++) {
|
|
11008
|
+
if (this.__items[i].name === attr.name && this.__items[i].namespaceURI === attr.namespaceURI) {
|
|
11009
|
+
this.__items.splice(i, 1);
|
|
11010
|
+
break;
|
|
10243
11011
|
}
|
|
10244
11012
|
}
|
|
10245
|
-
return void 0;
|
|
10246
11013
|
}
|
|
10247
|
-
|
|
11014
|
+
[Symbol.iterator]() {
|
|
11015
|
+
let i = 0;
|
|
11016
|
+
return {
|
|
11017
|
+
next: () => ({
|
|
11018
|
+
done: i === this.length,
|
|
11019
|
+
value: this.item(i++)
|
|
11020
|
+
})
|
|
11021
|
+
};
|
|
10248
11022
|
}
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
this.__registry.clear();
|
|
10252
|
-
}
|
|
10253
|
-
if (this.__whenDefined != null) {
|
|
10254
|
-
this.__whenDefined.clear();
|
|
10255
|
-
}
|
|
11023
|
+
get [Symbol.toStringTag]() {
|
|
11024
|
+
return "MockAttributeMap";
|
|
10256
11025
|
}
|
|
10257
|
-
|
|
10258
|
-
|
|
11026
|
+
};
|
|
11027
|
+
function getNamespaceURI(namespaceURI) {
|
|
11028
|
+
return namespaceURI === XLINK_NS ? null : namespaceURI;
|
|
11029
|
+
}
|
|
11030
|
+
function cloneAttributes(srcAttrs, sortByName = false) {
|
|
11031
|
+
const dstAttrs = new MockAttributeMap(srcAttrs.caseInsensitive);
|
|
11032
|
+
if (srcAttrs != null) {
|
|
11033
|
+
const attrLen = srcAttrs.length;
|
|
11034
|
+
if (sortByName && attrLen > 1) {
|
|
11035
|
+
const sortedAttrs = [];
|
|
11036
|
+
for (let i = 0; i < attrLen; i++) {
|
|
11037
|
+
const srcAttr = srcAttrs.item(i);
|
|
11038
|
+
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
11039
|
+
sortedAttrs.push(dstAttr);
|
|
11040
|
+
}
|
|
11041
|
+
sortedAttrs.sort(sortAttributes).forEach((attr) => {
|
|
11042
|
+
dstAttrs.setNamedItemNS(attr);
|
|
11043
|
+
});
|
|
11044
|
+
} else {
|
|
11045
|
+
for (let i = 0; i < attrLen; i++) {
|
|
11046
|
+
const srcAttr = srcAttrs.item(i);
|
|
11047
|
+
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
11048
|
+
dstAttrs.setNamedItemNS(dstAttr);
|
|
11049
|
+
}
|
|
11050
|
+
}
|
|
11051
|
+
}
|
|
11052
|
+
return dstAttrs;
|
|
11053
|
+
}
|
|
11054
|
+
function sortAttributes(a, b) {
|
|
11055
|
+
if (a.name < b.name) return -1;
|
|
11056
|
+
if (a.name > b.name) return 1;
|
|
11057
|
+
return 0;
|
|
11058
|
+
}
|
|
11059
|
+
var MockAttr = class {
|
|
11060
|
+
constructor(attrName, attrValue, namespaceURI = null) {
|
|
11061
|
+
this._name = attrName;
|
|
11062
|
+
this._value = String(attrValue);
|
|
11063
|
+
this._namespaceURI = namespaceURI;
|
|
11064
|
+
}
|
|
11065
|
+
get name() {
|
|
11066
|
+
return this._name;
|
|
11067
|
+
}
|
|
11068
|
+
set name(value) {
|
|
11069
|
+
this._name = value;
|
|
11070
|
+
}
|
|
11071
|
+
get value() {
|
|
11072
|
+
return this._value;
|
|
11073
|
+
}
|
|
11074
|
+
set value(value) {
|
|
11075
|
+
this._value = String(value);
|
|
11076
|
+
}
|
|
11077
|
+
get nodeName() {
|
|
11078
|
+
return this._name;
|
|
11079
|
+
}
|
|
11080
|
+
set nodeName(value) {
|
|
11081
|
+
this._name = value;
|
|
11082
|
+
}
|
|
11083
|
+
get nodeValue() {
|
|
11084
|
+
return this._value;
|
|
11085
|
+
}
|
|
11086
|
+
set nodeValue(value) {
|
|
11087
|
+
this._value = String(value);
|
|
11088
|
+
}
|
|
11089
|
+
get namespaceURI() {
|
|
11090
|
+
return this._namespaceURI;
|
|
11091
|
+
}
|
|
11092
|
+
set namespaceURI(namespaceURI) {
|
|
11093
|
+
this._namespaceURI = namespaceURI;
|
|
11094
|
+
}
|
|
11095
|
+
};
|
|
11096
|
+
|
|
11097
|
+
// src/mock-doc/css-style-declaration.ts
|
|
11098
|
+
var MockCSSStyleDeclaration = class {
|
|
11099
|
+
constructor() {
|
|
11100
|
+
this._styles = /* @__PURE__ */ new Map();
|
|
11101
|
+
}
|
|
11102
|
+
setProperty(prop, value) {
|
|
11103
|
+
prop = jsCaseToCssCase(prop);
|
|
11104
|
+
if (value == null || value === "") {
|
|
11105
|
+
this._styles.delete(prop);
|
|
11106
|
+
} else {
|
|
11107
|
+
this._styles.set(prop, String(value));
|
|
11108
|
+
}
|
|
11109
|
+
}
|
|
11110
|
+
getPropertyValue(prop) {
|
|
11111
|
+
prop = jsCaseToCssCase(prop);
|
|
11112
|
+
return String(this._styles.get(prop) || "");
|
|
11113
|
+
}
|
|
11114
|
+
removeProperty(prop) {
|
|
11115
|
+
prop = jsCaseToCssCase(prop);
|
|
11116
|
+
this._styles.delete(prop);
|
|
11117
|
+
}
|
|
11118
|
+
get length() {
|
|
11119
|
+
return this._styles.size;
|
|
11120
|
+
}
|
|
11121
|
+
get cssText() {
|
|
11122
|
+
const cssText = [];
|
|
11123
|
+
this._styles.forEach((value, prop) => {
|
|
11124
|
+
cssText.push(`${prop}: ${value};`);
|
|
11125
|
+
});
|
|
11126
|
+
return cssText.join(" ").trim();
|
|
11127
|
+
}
|
|
11128
|
+
set cssText(cssText) {
|
|
11129
|
+
if (cssText == null || cssText === "") {
|
|
11130
|
+
this._styles.clear();
|
|
11131
|
+
return;
|
|
11132
|
+
}
|
|
11133
|
+
cssText.split(";").forEach((rule) => {
|
|
11134
|
+
rule = rule.trim();
|
|
11135
|
+
if (rule.length > 0) {
|
|
11136
|
+
const splt = rule.split(":");
|
|
11137
|
+
if (splt.length > 1) {
|
|
11138
|
+
const prop = splt[0].trim();
|
|
11139
|
+
const value = splt.slice(1).join(":").trim();
|
|
11140
|
+
if (prop !== "" && value !== "") {
|
|
11141
|
+
this._styles.set(jsCaseToCssCase(prop), value);
|
|
11142
|
+
}
|
|
11143
|
+
}
|
|
11144
|
+
}
|
|
11145
|
+
});
|
|
11146
|
+
}
|
|
11147
|
+
};
|
|
11148
|
+
function createCSSStyleDeclaration() {
|
|
11149
|
+
return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler);
|
|
11150
|
+
}
|
|
11151
|
+
var cssProxyHandler = {
|
|
11152
|
+
get(cssStyle, prop) {
|
|
11153
|
+
if (prop in cssStyle) {
|
|
11154
|
+
return cssStyle[prop];
|
|
11155
|
+
}
|
|
11156
|
+
prop = cssCaseToJsCase(prop);
|
|
11157
|
+
return cssStyle.getPropertyValue(prop);
|
|
11158
|
+
},
|
|
11159
|
+
set(cssStyle, prop, value) {
|
|
11160
|
+
if (prop in cssStyle) {
|
|
11161
|
+
cssStyle[prop] = value;
|
|
11162
|
+
} else {
|
|
11163
|
+
cssStyle.setProperty(prop, value);
|
|
11164
|
+
}
|
|
11165
|
+
return true;
|
|
11166
|
+
}
|
|
11167
|
+
};
|
|
11168
|
+
function cssCaseToJsCase(str) {
|
|
11169
|
+
if (str.length > 1 && str.includes("-") === true) {
|
|
11170
|
+
str = str.toLowerCase().split("-").map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
11171
|
+
str = str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
11172
|
+
}
|
|
11173
|
+
return str;
|
|
11174
|
+
}
|
|
11175
|
+
function jsCaseToCssCase(str) {
|
|
11176
|
+
if (str.length > 1 && str.includes("-") === false && /[A-Z]/.test(str) === true) {
|
|
11177
|
+
str = str.replace(/([A-Z])/g, (g) => " " + g[0]).trim().replace(/ /g, "-").toLowerCase();
|
|
11178
|
+
}
|
|
11179
|
+
return str;
|
|
11180
|
+
}
|
|
11181
|
+
|
|
11182
|
+
// src/mock-doc/custom-element-registry.ts
|
|
11183
|
+
var MockCustomElementRegistry = class {
|
|
11184
|
+
constructor(win2) {
|
|
11185
|
+
this.win = win2;
|
|
11186
|
+
}
|
|
11187
|
+
define(tagName, cstr, options) {
|
|
11188
|
+
if (tagName.toLowerCase() !== tagName) {
|
|
11189
|
+
throw new Error(
|
|
11190
|
+
`Failed to execute 'define' on 'CustomElementRegistry': "${tagName}" is not a valid custom element name`
|
|
11191
|
+
);
|
|
11192
|
+
}
|
|
11193
|
+
if (this.__registry == null) {
|
|
11194
|
+
this.__registry = /* @__PURE__ */ new Map();
|
|
11195
|
+
}
|
|
11196
|
+
this.__registry.set(tagName, { cstr, options });
|
|
11197
|
+
if (this.__whenDefined != null) {
|
|
11198
|
+
const whenDefinedResolveFns = this.__whenDefined.get(tagName);
|
|
11199
|
+
if (whenDefinedResolveFns != null) {
|
|
11200
|
+
whenDefinedResolveFns.forEach((whenDefinedResolveFn) => {
|
|
11201
|
+
whenDefinedResolveFn();
|
|
11202
|
+
});
|
|
11203
|
+
whenDefinedResolveFns.length = 0;
|
|
11204
|
+
this.__whenDefined.delete(tagName);
|
|
11205
|
+
}
|
|
11206
|
+
}
|
|
11207
|
+
const doc = this.win.document;
|
|
11208
|
+
if (doc != null) {
|
|
11209
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
11210
|
+
hosts.forEach((host) => {
|
|
11211
|
+
if (upgradedElements.has(host) === false) {
|
|
11212
|
+
tempDisableCallbacks.add(doc);
|
|
11213
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
11214
|
+
for (let i = 0; i < host.childNodes.length; i++) {
|
|
11215
|
+
const childNode = host.childNodes[i];
|
|
11216
|
+
childNode.remove();
|
|
11217
|
+
upgradedCmp.appendChild(childNode);
|
|
11218
|
+
}
|
|
11219
|
+
tempDisableCallbacks.delete(doc);
|
|
11220
|
+
if (proxyElements.has(host)) {
|
|
11221
|
+
proxyElements.set(host, upgradedCmp);
|
|
11222
|
+
}
|
|
11223
|
+
}
|
|
11224
|
+
fireConnectedCallback2(host);
|
|
11225
|
+
});
|
|
11226
|
+
}
|
|
11227
|
+
}
|
|
11228
|
+
get(tagName) {
|
|
11229
|
+
if (this.__registry != null) {
|
|
11230
|
+
const def = this.__registry.get(tagName.toLowerCase());
|
|
11231
|
+
if (def != null) {
|
|
11232
|
+
return def.cstr;
|
|
11233
|
+
}
|
|
11234
|
+
}
|
|
11235
|
+
return void 0;
|
|
11236
|
+
}
|
|
11237
|
+
getName(cstr) {
|
|
11238
|
+
for (const [tagName, def] of this.__registry.entries()) {
|
|
11239
|
+
if (def.cstr === cstr) {
|
|
11240
|
+
return tagName;
|
|
11241
|
+
}
|
|
11242
|
+
}
|
|
11243
|
+
return void 0;
|
|
11244
|
+
}
|
|
11245
|
+
upgrade(_rootNode) {
|
|
11246
|
+
}
|
|
11247
|
+
clear() {
|
|
11248
|
+
if (this.__registry != null) {
|
|
11249
|
+
this.__registry.clear();
|
|
11250
|
+
}
|
|
11251
|
+
if (this.__whenDefined != null) {
|
|
11252
|
+
this.__whenDefined.clear();
|
|
11253
|
+
}
|
|
11254
|
+
}
|
|
11255
|
+
whenDefined(tagName) {
|
|
11256
|
+
tagName = tagName.toLowerCase();
|
|
10259
11257
|
if (this.__registry != null && this.__registry.has(tagName) === true) {
|
|
10260
11258
|
return Promise.resolve(this.__registry.get(tagName).cstr);
|
|
10261
11259
|
}
|
|
@@ -10323,7 +11321,7 @@ function connectNode(ownerDocument, node) {
|
|
|
10323
11321
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
10324
11322
|
const win2 = ownerDocument.defaultView;
|
|
10325
11323
|
if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
10326
|
-
|
|
11324
|
+
fireConnectedCallback2(node);
|
|
10327
11325
|
}
|
|
10328
11326
|
const shadowRoot = node.shadowRoot;
|
|
10329
11327
|
if (shadowRoot != null) {
|
|
@@ -10341,7 +11339,7 @@ function connectNode(ownerDocument, node) {
|
|
|
10341
11339
|
});
|
|
10342
11340
|
}
|
|
10343
11341
|
}
|
|
10344
|
-
function
|
|
11342
|
+
function fireConnectedCallback2(node) {
|
|
10345
11343
|
if (typeof node.connectedCallback === "function") {
|
|
10346
11344
|
if (tempDisableCallbacks.has(node.ownerDocument) === false) {
|
|
10347
11345
|
try {
|
|
@@ -10391,7 +11389,7 @@ function dataset(elm) {
|
|
|
10391
11389
|
const attr = attributes.item(i);
|
|
10392
11390
|
const nodeName = attr.nodeName;
|
|
10393
11391
|
if (nodeName.startsWith("data-")) {
|
|
10394
|
-
ds[
|
|
11392
|
+
ds[dashToPascalCase2(nodeName)] = attr.nodeValue;
|
|
10395
11393
|
}
|
|
10396
11394
|
}
|
|
10397
11395
|
return new Proxy(ds, {
|
|
@@ -10408,7 +11406,7 @@ function dataset(elm) {
|
|
|
10408
11406
|
function toDataAttribute(str) {
|
|
10409
11407
|
return "data-" + String(str).replace(/([A-Z0-9])/g, (g) => " " + g[0]).trim().replace(/ /g, "-").toLowerCase();
|
|
10410
11408
|
}
|
|
10411
|
-
function
|
|
11409
|
+
function dashToPascalCase2(str) {
|
|
10412
11410
|
str = String(str).slice(5);
|
|
10413
11411
|
return str.split("-").map((segment, index) => {
|
|
10414
11412
|
if (index === 0) {
|
|
@@ -18760,14 +19758,14 @@ var jquery_default = (
|
|
|
18760
19758
|
*
|
|
18761
19759
|
* Date: 2023-12-11T17:55Z
|
|
18762
19760
|
*/
|
|
18763
|
-
function(global2, factory) {
|
|
19761
|
+
(function(global2, factory) {
|
|
18764
19762
|
"use strict";
|
|
18765
19763
|
if (true) {
|
|
18766
19764
|
return factory(global2, true);
|
|
18767
19765
|
} else {
|
|
18768
19766
|
factory(global2);
|
|
18769
19767
|
}
|
|
18770
|
-
}({
|
|
19768
|
+
})({
|
|
18771
19769
|
document: {
|
|
18772
19770
|
createElement() {
|
|
18773
19771
|
return {};
|
|
@@ -20737,10 +21735,10 @@ var MockNode2 = class {
|
|
|
20737
21735
|
insertBefore(newNode, referenceNode) {
|
|
20738
21736
|
if (newNode.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
20739
21737
|
for (let i = 0, ii = newNode.childNodes.length; i < ii; i++) {
|
|
20740
|
-
|
|
21738
|
+
insertBefore2(this, newNode.childNodes[i], referenceNode);
|
|
20741
21739
|
}
|
|
20742
21740
|
} else {
|
|
20743
|
-
|
|
21741
|
+
insertBefore2(this, newNode, referenceNode);
|
|
20744
21742
|
}
|
|
20745
21743
|
return newNode;
|
|
20746
21744
|
}
|
|
@@ -21085,13 +22083,13 @@ var MockElement = class extends MockNode2 {
|
|
|
21085
22083
|
}
|
|
21086
22084
|
insertAdjacentElement(position, elm) {
|
|
21087
22085
|
if (position === "beforebegin" && this.parentNode) {
|
|
21088
|
-
|
|
22086
|
+
insertBefore2(this.parentNode, elm, this);
|
|
21089
22087
|
} else if (position === "afterbegin") {
|
|
21090
22088
|
this.prepend(elm);
|
|
21091
22089
|
} else if (position === "beforeend") {
|
|
21092
22090
|
this.appendChild(elm);
|
|
21093
22091
|
} else if (position === "afterend" && this.parentNode) {
|
|
21094
|
-
|
|
22092
|
+
insertBefore2(this.parentNode, elm, this.nextSibling);
|
|
21095
22093
|
}
|
|
21096
22094
|
return elm;
|
|
21097
22095
|
}
|
|
@@ -21100,7 +22098,7 @@ var MockElement = class extends MockNode2 {
|
|
|
21100
22098
|
if (position === "beforebegin") {
|
|
21101
22099
|
while (frag.childNodes.length > 0) {
|
|
21102
22100
|
if (this.parentNode) {
|
|
21103
|
-
|
|
22101
|
+
insertBefore2(this.parentNode, frag.childNodes[0], this);
|
|
21104
22102
|
}
|
|
21105
22103
|
}
|
|
21106
22104
|
} else if (position === "afterbegin") {
|
|
@@ -21114,7 +22112,7 @@ var MockElement = class extends MockNode2 {
|
|
|
21114
22112
|
} else if (position === "afterend") {
|
|
21115
22113
|
while (frag.childNodes.length > 0) {
|
|
21116
22114
|
if (this.parentNode) {
|
|
21117
|
-
|
|
22115
|
+
insertBefore2(this.parentNode, frag.childNodes[frag.childNodes.length - 1], this.nextSibling);
|
|
21118
22116
|
}
|
|
21119
22117
|
}
|
|
21120
22118
|
}
|
|
@@ -21122,13 +22120,13 @@ var MockElement = class extends MockNode2 {
|
|
|
21122
22120
|
insertAdjacentText(position, text) {
|
|
21123
22121
|
const elm = this.ownerDocument.createTextNode(text);
|
|
21124
22122
|
if (position === "beforebegin" && this.parentNode) {
|
|
21125
|
-
|
|
22123
|
+
insertBefore2(this.parentNode, elm, this);
|
|
21126
22124
|
} else if (position === "afterbegin") {
|
|
21127
22125
|
this.prepend(elm);
|
|
21128
22126
|
} else if (position === "beforeend") {
|
|
21129
22127
|
this.appendChild(elm);
|
|
21130
22128
|
} else if (position === "afterend" && this.parentNode) {
|
|
21131
|
-
|
|
22129
|
+
insertBefore2(this.parentNode, elm, this.nextSibling);
|
|
21132
22130
|
}
|
|
21133
22131
|
}
|
|
21134
22132
|
hasAttribute(attrName) {
|
|
@@ -21543,7 +22541,7 @@ function resetElement(elm) {
|
|
|
21543
22541
|
delete elm.__shadowRoot;
|
|
21544
22542
|
delete elm.__style;
|
|
21545
22543
|
}
|
|
21546
|
-
function
|
|
22544
|
+
function insertBefore2(parentNode, newNode, referenceNode) {
|
|
21547
22545
|
if (newNode !== referenceNode) {
|
|
21548
22546
|
newNode.remove();
|
|
21549
22547
|
newNode.parentNode = parentNode;
|
|
@@ -23951,672 +24949,138 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
23951
24949
|
}
|
|
23952
24950
|
createElement(tagName) {
|
|
23953
24951
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
23954
|
-
const doc = new _MockDocument(false);
|
|
23955
|
-
doc.nodeName = tagName;
|
|
23956
|
-
doc.parentNode = null;
|
|
23957
|
-
return doc;
|
|
23958
|
-
}
|
|
23959
|
-
return createElement(this, tagName);
|
|
23960
|
-
}
|
|
23961
|
-
createElementNS(namespaceURI, tagName) {
|
|
23962
|
-
const elmNs = createElementNS(this, namespaceURI, tagName);
|
|
23963
|
-
return elmNs;
|
|
23964
|
-
}
|
|
23965
|
-
createTextNode(text) {
|
|
23966
|
-
return new MockTextNode(this, text);
|
|
23967
|
-
}
|
|
23968
|
-
createDocumentFragment() {
|
|
23969
|
-
return new MockDocumentFragment(this);
|
|
23970
|
-
}
|
|
23971
|
-
createDocumentTypeNode() {
|
|
23972
|
-
return new MockDocumentTypeNode(this);
|
|
23973
|
-
}
|
|
23974
|
-
getElementById(id) {
|
|
23975
|
-
return getElementById(this, id);
|
|
23976
|
-
}
|
|
23977
|
-
getElementsByName(elmName) {
|
|
23978
|
-
return getElementsByName(this, elmName.toLowerCase());
|
|
23979
|
-
}
|
|
23980
|
-
get title() {
|
|
23981
|
-
const title = this.head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
23982
|
-
if (title != null && typeof title.textContent === "string") {
|
|
23983
|
-
return title.textContent.trim();
|
|
23984
|
-
}
|
|
23985
|
-
return "";
|
|
23986
|
-
}
|
|
23987
|
-
set title(value) {
|
|
23988
|
-
const head = this.head;
|
|
23989
|
-
let title = head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
23990
|
-
if (title == null) {
|
|
23991
|
-
title = this.createElement("title");
|
|
23992
|
-
head.appendChild(title);
|
|
23993
|
-
}
|
|
23994
|
-
title.textContent = value;
|
|
23995
|
-
}
|
|
23996
|
-
};
|
|
23997
|
-
function resetDocument(doc) {
|
|
23998
|
-
if (doc != null) {
|
|
23999
|
-
resetEventListeners(doc);
|
|
24000
|
-
const documentElement = doc.documentElement;
|
|
24001
|
-
if (documentElement != null) {
|
|
24002
|
-
resetElement(documentElement);
|
|
24003
|
-
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
24004
|
-
const childNode = documentElement.childNodes[i];
|
|
24005
|
-
resetElement(childNode);
|
|
24006
|
-
childNode.childNodes.length = 0;
|
|
24007
|
-
}
|
|
24008
|
-
}
|
|
24009
|
-
for (const key in doc) {
|
|
24010
|
-
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
24011
|
-
delete doc[key];
|
|
24012
|
-
}
|
|
24013
|
-
}
|
|
24014
|
-
try {
|
|
24015
|
-
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
24016
|
-
} catch (e) {
|
|
24017
|
-
}
|
|
24018
|
-
try {
|
|
24019
|
-
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
24020
|
-
} catch (e) {
|
|
24021
|
-
}
|
|
24022
|
-
try {
|
|
24023
|
-
doc.cookie = "";
|
|
24024
|
-
} catch (e) {
|
|
24025
|
-
}
|
|
24026
|
-
try {
|
|
24027
|
-
doc.referrer = "";
|
|
24028
|
-
} catch (e) {
|
|
24029
|
-
}
|
|
24030
|
-
}
|
|
24031
|
-
}
|
|
24032
|
-
var DOC_KEY_KEEPERS = /* @__PURE__ */ new Set([
|
|
24033
|
-
"nodeName",
|
|
24034
|
-
"nodeType",
|
|
24035
|
-
"nodeValue",
|
|
24036
|
-
"ownerDocument",
|
|
24037
|
-
"parentNode",
|
|
24038
|
-
"childNodes",
|
|
24039
|
-
"_shadowRoot"
|
|
24040
|
-
]);
|
|
24041
|
-
function getElementById(elm, id) {
|
|
24042
|
-
const children = elm.children;
|
|
24043
|
-
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
24044
|
-
const childElm = children[i];
|
|
24045
|
-
if (childElm.id === id) {
|
|
24046
|
-
return childElm;
|
|
24047
|
-
}
|
|
24048
|
-
const childElmFound = getElementById(childElm, id);
|
|
24049
|
-
if (childElmFound != null) {
|
|
24050
|
-
return childElmFound;
|
|
24051
|
-
}
|
|
24052
|
-
}
|
|
24053
|
-
return null;
|
|
24054
|
-
}
|
|
24055
|
-
function getElementsByName(elm, elmName, foundElms = []) {
|
|
24056
|
-
const children = elm.children;
|
|
24057
|
-
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
24058
|
-
const childElm = children[i];
|
|
24059
|
-
if (childElm.name && childElm.name.toLowerCase() === elmName) {
|
|
24060
|
-
foundElms.push(childElm);
|
|
24061
|
-
}
|
|
24062
|
-
getElementsByName(childElm, elmName, foundElms);
|
|
24063
|
-
}
|
|
24064
|
-
return foundElms;
|
|
24065
|
-
}
|
|
24066
|
-
function setOwnerDocument(elm, ownerDocument) {
|
|
24067
|
-
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
24068
|
-
elm.childNodes[i].ownerDocument = ownerDocument;
|
|
24069
|
-
if (elm.childNodes[i].nodeType === 1 /* ELEMENT_NODE */) {
|
|
24070
|
-
setOwnerDocument(elm.childNodes[i], ownerDocument);
|
|
24071
|
-
}
|
|
24072
|
-
}
|
|
24073
|
-
}
|
|
24074
|
-
|
|
24075
|
-
// src/hydrate/runner/create-window.ts
|
|
24076
|
-
var templateWindows = /* @__PURE__ */ new Map();
|
|
24077
|
-
function createWindowFromHtml(templateHtml, uniqueId) {
|
|
24078
|
-
let templateWindow = templateWindows.get(uniqueId);
|
|
24079
|
-
if (templateWindow == null) {
|
|
24080
|
-
templateWindow = new MockWindow(templateHtml);
|
|
24081
|
-
templateWindows.set(uniqueId, templateWindow);
|
|
24082
|
-
}
|
|
24083
|
-
const win2 = cloneWindow(templateWindow);
|
|
24084
|
-
return win2;
|
|
24085
|
-
}
|
|
24086
|
-
var Build = {
|
|
24087
|
-
isDev: BUILD.isDev ? true : false,
|
|
24088
|
-
isBrowser: true,
|
|
24089
|
-
isServer: false,
|
|
24090
|
-
isTesting: BUILD.isTesting ? true : false
|
|
24091
|
-
};
|
|
24092
|
-
|
|
24093
|
-
// src/utils/constants.ts
|
|
24094
|
-
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
24095
|
-
PrimitiveType2["Undefined"] = "undefined";
|
|
24096
|
-
PrimitiveType2["Null"] = "null";
|
|
24097
|
-
PrimitiveType2["String"] = "string";
|
|
24098
|
-
PrimitiveType2["Number"] = "number";
|
|
24099
|
-
PrimitiveType2["SpecialNumber"] = "number";
|
|
24100
|
-
PrimitiveType2["Boolean"] = "boolean";
|
|
24101
|
-
PrimitiveType2["BigInt"] = "bigint";
|
|
24102
|
-
return PrimitiveType2;
|
|
24103
|
-
})(PrimitiveType || {});
|
|
24104
|
-
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
24105
|
-
NonPrimitiveType2["Array"] = "array";
|
|
24106
|
-
NonPrimitiveType2["Date"] = "date";
|
|
24107
|
-
NonPrimitiveType2["Map"] = "map";
|
|
24108
|
-
NonPrimitiveType2["Object"] = "object";
|
|
24109
|
-
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
24110
|
-
NonPrimitiveType2["Set"] = "set";
|
|
24111
|
-
NonPrimitiveType2["Channel"] = "channel";
|
|
24112
|
-
NonPrimitiveType2["Symbol"] = "symbol";
|
|
24113
|
-
return NonPrimitiveType2;
|
|
24114
|
-
})(NonPrimitiveType || {});
|
|
24115
|
-
var TYPE_CONSTANT = "type";
|
|
24116
|
-
var VALUE_CONSTANT = "value";
|
|
24117
|
-
var SERIALIZED_PREFIX = "serialized:";
|
|
24118
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
24119
|
-
"%cstencil",
|
|
24120
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
24121
|
-
];
|
|
24122
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
24123
|
-
var H = win.HTMLElement || class {
|
|
24124
|
-
};
|
|
24125
|
-
var supportsShadow = BUILD.shadowDom;
|
|
24126
|
-
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
24127
|
-
try {
|
|
24128
|
-
new CSSStyleSheet();
|
|
24129
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
24130
|
-
} catch (e) {
|
|
24131
|
-
}
|
|
24132
|
-
return false;
|
|
24133
|
-
})() : false;
|
|
24134
|
-
|
|
24135
|
-
// src/utils/helpers.ts
|
|
24136
|
-
var isString = (v) => typeof v === "string";
|
|
24137
|
-
|
|
24138
|
-
// src/utils/local-value.ts
|
|
24139
|
-
var LocalValue = class _LocalValue {
|
|
24140
|
-
constructor(type, value) {
|
|
24141
|
-
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
24142
|
-
this.type = type;
|
|
24143
|
-
} else {
|
|
24144
|
-
this.type = type;
|
|
24145
|
-
this.value = value;
|
|
24146
|
-
}
|
|
24147
|
-
}
|
|
24148
|
-
/**
|
|
24149
|
-
* Creates a new LocalValue object with a string value.
|
|
24150
|
-
*
|
|
24151
|
-
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
24152
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24153
|
-
*/
|
|
24154
|
-
static createStringValue(value) {
|
|
24155
|
-
return new _LocalValue("string" /* String */, value);
|
|
24156
|
-
}
|
|
24157
|
-
/**
|
|
24158
|
-
* Creates a new LocalValue object with a number value.
|
|
24159
|
-
*
|
|
24160
|
-
* @param {number} value - The number value.
|
|
24161
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24162
|
-
*/
|
|
24163
|
-
static createNumberValue(value) {
|
|
24164
|
-
return new _LocalValue("number" /* Number */, value);
|
|
24165
|
-
}
|
|
24166
|
-
/**
|
|
24167
|
-
* Creates a new LocalValue object with a special number value.
|
|
24168
|
-
*
|
|
24169
|
-
* @param {number} value - The value of the special number.
|
|
24170
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24171
|
-
*/
|
|
24172
|
-
static createSpecialNumberValue(value) {
|
|
24173
|
-
if (Number.isNaN(value)) {
|
|
24174
|
-
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
24175
|
-
}
|
|
24176
|
-
if (Object.is(value, -0)) {
|
|
24177
|
-
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
24178
|
-
}
|
|
24179
|
-
if (value === Infinity) {
|
|
24180
|
-
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
24181
|
-
}
|
|
24182
|
-
if (value === -Infinity) {
|
|
24183
|
-
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
24184
|
-
}
|
|
24185
|
-
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
24186
|
-
}
|
|
24187
|
-
/**
|
|
24188
|
-
* Creates a new LocalValue object with an undefined value.
|
|
24189
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24190
|
-
*/
|
|
24191
|
-
static createUndefinedValue() {
|
|
24192
|
-
return new _LocalValue("undefined" /* Undefined */);
|
|
24193
|
-
}
|
|
24194
|
-
/**
|
|
24195
|
-
* Creates a new LocalValue object with a null value.
|
|
24196
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24197
|
-
*/
|
|
24198
|
-
static createNullValue() {
|
|
24199
|
-
return new _LocalValue("null" /* Null */);
|
|
24200
|
-
}
|
|
24201
|
-
/**
|
|
24202
|
-
* Creates a new LocalValue object with a boolean value.
|
|
24203
|
-
*
|
|
24204
|
-
* @param {boolean} value - The boolean value.
|
|
24205
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24206
|
-
*/
|
|
24207
|
-
static createBooleanValue(value) {
|
|
24208
|
-
return new _LocalValue("boolean" /* Boolean */, value);
|
|
24209
|
-
}
|
|
24210
|
-
/**
|
|
24211
|
-
* Creates a new LocalValue object with a BigInt value.
|
|
24212
|
-
*
|
|
24213
|
-
* @param {BigInt} value - The BigInt value.
|
|
24214
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24215
|
-
*/
|
|
24216
|
-
static createBigIntValue(value) {
|
|
24217
|
-
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
24218
|
-
}
|
|
24219
|
-
/**
|
|
24220
|
-
* Creates a new LocalValue object with an array.
|
|
24221
|
-
*
|
|
24222
|
-
* @param {Array} value - The array.
|
|
24223
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24224
|
-
*/
|
|
24225
|
-
static createArrayValue(value) {
|
|
24226
|
-
return new _LocalValue("array" /* Array */, value);
|
|
24227
|
-
}
|
|
24228
|
-
/**
|
|
24229
|
-
* Creates a new LocalValue object with date value.
|
|
24230
|
-
*
|
|
24231
|
-
* @param {string} value - The date.
|
|
24232
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24233
|
-
*/
|
|
24234
|
-
static createDateValue(value) {
|
|
24235
|
-
return new _LocalValue("date" /* Date */, value);
|
|
24236
|
-
}
|
|
24237
|
-
/**
|
|
24238
|
-
* Creates a new LocalValue object of map value.
|
|
24239
|
-
* @param {Map} map - The map.
|
|
24240
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24241
|
-
*/
|
|
24242
|
-
static createMapValue(map2) {
|
|
24243
|
-
const value = [];
|
|
24244
|
-
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
24245
|
-
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
24246
|
-
});
|
|
24247
|
-
return new _LocalValue("map" /* Map */, value);
|
|
24248
|
-
}
|
|
24249
|
-
/**
|
|
24250
|
-
* Creates a new LocalValue object from the passed object.
|
|
24251
|
-
*
|
|
24252
|
-
* @param object the object to create a LocalValue from
|
|
24253
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24254
|
-
*/
|
|
24255
|
-
static createObjectValue(object) {
|
|
24256
|
-
const value = [];
|
|
24257
|
-
Object.entries(object).forEach(([key, val]) => {
|
|
24258
|
-
value.push([key, _LocalValue.getArgument(val)]);
|
|
24259
|
-
});
|
|
24260
|
-
return new _LocalValue("object" /* Object */, value);
|
|
24261
|
-
}
|
|
24262
|
-
/**
|
|
24263
|
-
* Creates a new LocalValue object of regular expression value.
|
|
24264
|
-
*
|
|
24265
|
-
* @param {string} value - The value of the regular expression.
|
|
24266
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24267
|
-
*/
|
|
24268
|
-
static createRegularExpressionValue(value) {
|
|
24269
|
-
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
24270
|
-
}
|
|
24271
|
-
/**
|
|
24272
|
-
* Creates a new LocalValue object with the specified value.
|
|
24273
|
-
* @param {Set} value - The value to be set.
|
|
24274
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24275
|
-
*/
|
|
24276
|
-
static createSetValue(value) {
|
|
24277
|
-
return new _LocalValue("set" /* Set */, value);
|
|
24278
|
-
}
|
|
24279
|
-
/**
|
|
24280
|
-
* Creates a new LocalValue object with the given channel value
|
|
24281
|
-
*
|
|
24282
|
-
* @param {ChannelValue} value - The channel value.
|
|
24283
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24284
|
-
*/
|
|
24285
|
-
static createChannelValue(value) {
|
|
24286
|
-
return new _LocalValue("channel" /* Channel */, value);
|
|
24287
|
-
}
|
|
24288
|
-
/**
|
|
24289
|
-
* Creates a new LocalValue object with a Symbol value.
|
|
24290
|
-
*
|
|
24291
|
-
* @param {Symbol} symbol - The Symbol value
|
|
24292
|
-
* @returns {LocalValue} - The created LocalValue object
|
|
24293
|
-
*/
|
|
24294
|
-
static createSymbolValue(symbol) {
|
|
24295
|
-
const description = symbol.description || "Symbol()";
|
|
24296
|
-
return new _LocalValue("symbol" /* Symbol */, description);
|
|
24297
|
-
}
|
|
24298
|
-
static getArgument(argument) {
|
|
24299
|
-
const type = typeof argument;
|
|
24300
|
-
switch (type) {
|
|
24301
|
-
case "string" /* String */:
|
|
24302
|
-
return _LocalValue.createStringValue(argument);
|
|
24303
|
-
case "number" /* Number */:
|
|
24304
|
-
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
24305
|
-
return _LocalValue.createSpecialNumberValue(argument);
|
|
24306
|
-
}
|
|
24307
|
-
return _LocalValue.createNumberValue(argument);
|
|
24308
|
-
case "boolean" /* Boolean */:
|
|
24309
|
-
return _LocalValue.createBooleanValue(argument);
|
|
24310
|
-
case "bigint" /* BigInt */:
|
|
24311
|
-
return _LocalValue.createBigIntValue(argument);
|
|
24312
|
-
case "undefined" /* Undefined */:
|
|
24313
|
-
return _LocalValue.createUndefinedValue();
|
|
24314
|
-
case "symbol" /* Symbol */:
|
|
24315
|
-
return _LocalValue.createSymbolValue(argument);
|
|
24316
|
-
case "object" /* Object */:
|
|
24317
|
-
if (argument === null) {
|
|
24318
|
-
return _LocalValue.createNullValue();
|
|
24319
|
-
}
|
|
24320
|
-
if (argument instanceof Date) {
|
|
24321
|
-
return _LocalValue.createDateValue(argument);
|
|
24322
|
-
}
|
|
24323
|
-
if (argument instanceof Map) {
|
|
24324
|
-
const map2 = [];
|
|
24325
|
-
argument.forEach((value, key) => {
|
|
24326
|
-
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
24327
|
-
const objectValue = _LocalValue.getArgument(value);
|
|
24328
|
-
map2.push([objectKey, objectValue]);
|
|
24329
|
-
});
|
|
24330
|
-
return _LocalValue.createMapValue(argument);
|
|
24331
|
-
}
|
|
24332
|
-
if (argument instanceof Set) {
|
|
24333
|
-
const set = [];
|
|
24334
|
-
argument.forEach((value) => {
|
|
24335
|
-
set.push(_LocalValue.getArgument(value));
|
|
24336
|
-
});
|
|
24337
|
-
return _LocalValue.createSetValue(set);
|
|
24338
|
-
}
|
|
24339
|
-
if (argument instanceof Array) {
|
|
24340
|
-
const arr = [];
|
|
24341
|
-
argument.forEach((value) => {
|
|
24342
|
-
arr.push(_LocalValue.getArgument(value));
|
|
24343
|
-
});
|
|
24344
|
-
return _LocalValue.createArrayValue(arr);
|
|
24345
|
-
}
|
|
24346
|
-
if (argument instanceof RegExp) {
|
|
24347
|
-
return _LocalValue.createRegularExpressionValue({
|
|
24348
|
-
pattern: argument.source,
|
|
24349
|
-
flags: argument.flags
|
|
24350
|
-
});
|
|
24351
|
-
}
|
|
24352
|
-
return _LocalValue.createObjectValue(argument);
|
|
24353
|
-
}
|
|
24354
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
24355
|
-
}
|
|
24356
|
-
asMap() {
|
|
24357
|
-
return {
|
|
24358
|
-
[TYPE_CONSTANT]: this.type,
|
|
24359
|
-
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
24360
|
-
};
|
|
24361
|
-
}
|
|
24362
|
-
};
|
|
24363
|
-
|
|
24364
|
-
// src/utils/message-utils.ts
|
|
24365
|
-
var catchError = (diagnostics, err2, msg) => {
|
|
24366
|
-
const diagnostic = {
|
|
24367
|
-
level: "error",
|
|
24368
|
-
type: "build",
|
|
24369
|
-
header: "Build Error",
|
|
24370
|
-
messageText: "build error",
|
|
24371
|
-
lines: []
|
|
24372
|
-
};
|
|
24373
|
-
if (isString(msg)) {
|
|
24374
|
-
diagnostic.messageText = msg.length ? msg : "UNKNOWN ERROR";
|
|
24375
|
-
} else if (err2 != null) {
|
|
24376
|
-
if (err2.stack != null) {
|
|
24377
|
-
diagnostic.messageText = err2.stack.toString();
|
|
24378
|
-
} else {
|
|
24379
|
-
if (err2.message != null) {
|
|
24380
|
-
diagnostic.messageText = err2.message.length ? err2.message : "UNKNOWN ERROR";
|
|
24381
|
-
} else {
|
|
24382
|
-
diagnostic.messageText = err2.toString();
|
|
24383
|
-
}
|
|
24384
|
-
}
|
|
24385
|
-
}
|
|
24386
|
-
if (diagnostics != null && !shouldIgnoreError(diagnostic.messageText)) {
|
|
24387
|
-
diagnostics.push(diagnostic);
|
|
24388
|
-
}
|
|
24389
|
-
return diagnostic;
|
|
24390
|
-
};
|
|
24391
|
-
var hasError = (diagnostics) => {
|
|
24392
|
-
if (diagnostics == null || diagnostics.length === 0) {
|
|
24393
|
-
return false;
|
|
24394
|
-
}
|
|
24395
|
-
return diagnostics.some((d) => d.level === "error" && d.type !== "runtime");
|
|
24396
|
-
};
|
|
24397
|
-
var shouldIgnoreError = (msg) => {
|
|
24398
|
-
return msg === TASK_CANCELED_MSG;
|
|
24399
|
-
};
|
|
24400
|
-
var TASK_CANCELED_MSG = `task canceled`;
|
|
24401
|
-
|
|
24402
|
-
// src/utils/regular-expression.ts
|
|
24403
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
24404
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
24405
|
-
};
|
|
24406
|
-
|
|
24407
|
-
// src/utils/remote-value.ts
|
|
24408
|
-
var RemoteValue = class _RemoteValue {
|
|
24409
|
-
/**
|
|
24410
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
24411
|
-
*
|
|
24412
|
-
* @param serialized The serialized LocalValue object
|
|
24413
|
-
* @returns The original JavaScript value/object
|
|
24414
|
-
*/
|
|
24415
|
-
static fromLocalValue(serialized) {
|
|
24416
|
-
const type = serialized[TYPE_CONSTANT];
|
|
24417
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
24418
|
-
switch (type) {
|
|
24419
|
-
case "string" /* String */:
|
|
24420
|
-
return value;
|
|
24421
|
-
case "boolean" /* Boolean */:
|
|
24422
|
-
return value;
|
|
24423
|
-
case "bigint" /* BigInt */:
|
|
24424
|
-
return BigInt(value);
|
|
24425
|
-
case "undefined" /* Undefined */:
|
|
24426
|
-
return void 0;
|
|
24427
|
-
case "null" /* Null */:
|
|
24428
|
-
return null;
|
|
24429
|
-
case "number" /* Number */:
|
|
24430
|
-
if (value === "NaN") return NaN;
|
|
24431
|
-
if (value === "-0") return -0;
|
|
24432
|
-
if (value === "Infinity") return Infinity;
|
|
24433
|
-
if (value === "-Infinity") return -Infinity;
|
|
24434
|
-
return value;
|
|
24435
|
-
case "array" /* Array */:
|
|
24436
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
24437
|
-
case "date" /* Date */:
|
|
24438
|
-
return new Date(value);
|
|
24439
|
-
case "map" /* Map */:
|
|
24440
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
24441
|
-
for (const [key, val] of value) {
|
|
24442
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
24443
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
24444
|
-
map2.set(deserializedKey, deserializedValue);
|
|
24445
|
-
}
|
|
24446
|
-
return map2;
|
|
24447
|
-
case "object" /* Object */:
|
|
24448
|
-
const obj = {};
|
|
24449
|
-
for (const [key, val] of value) {
|
|
24450
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
24451
|
-
}
|
|
24452
|
-
return obj;
|
|
24453
|
-
case "regexp" /* RegularExpression */:
|
|
24454
|
-
const { pattern, flags } = value;
|
|
24455
|
-
return new RegExp(pattern, flags);
|
|
24456
|
-
case "set" /* Set */:
|
|
24457
|
-
const set = /* @__PURE__ */ new Set();
|
|
24458
|
-
for (const item of value) {
|
|
24459
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
24460
|
-
}
|
|
24461
|
-
return set;
|
|
24462
|
-
case "symbol" /* Symbol */:
|
|
24463
|
-
return Symbol(value);
|
|
24464
|
-
default:
|
|
24465
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
24952
|
+
const doc = new _MockDocument(false);
|
|
24953
|
+
doc.nodeName = tagName;
|
|
24954
|
+
doc.parentNode = null;
|
|
24955
|
+
return doc;
|
|
24466
24956
|
}
|
|
24957
|
+
return createElement(this, tagName);
|
|
24467
24958
|
}
|
|
24468
|
-
|
|
24469
|
-
|
|
24470
|
-
|
|
24471
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
24472
|
-
* @returns Array of deserialized JavaScript values
|
|
24473
|
-
*/
|
|
24474
|
-
static fromLocalValueArray(serializedValues) {
|
|
24475
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
24959
|
+
createElementNS(namespaceURI, tagName) {
|
|
24960
|
+
const elmNs = createElementNS(this, namespaceURI, tagName);
|
|
24961
|
+
return elmNs;
|
|
24476
24962
|
}
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24963
|
+
createTextNode(text) {
|
|
24964
|
+
return new MockTextNode(this, text);
|
|
24965
|
+
}
|
|
24966
|
+
createDocumentFragment() {
|
|
24967
|
+
return new MockDocumentFragment(this);
|
|
24968
|
+
}
|
|
24969
|
+
createDocumentTypeNode() {
|
|
24970
|
+
return new MockDocumentTypeNode(this);
|
|
24971
|
+
}
|
|
24972
|
+
getElementById(id) {
|
|
24973
|
+
return getElementById(this, id);
|
|
24974
|
+
}
|
|
24975
|
+
getElementsByName(elmName) {
|
|
24976
|
+
return getElementsByName(this, elmName.toLowerCase());
|
|
24977
|
+
}
|
|
24978
|
+
get title() {
|
|
24979
|
+
const title = this.head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
24980
|
+
if (title != null && typeof title.textContent === "string") {
|
|
24981
|
+
return title.textContent.trim();
|
|
24494
24982
|
}
|
|
24495
|
-
|
|
24496
|
-
|
|
24983
|
+
return "";
|
|
24984
|
+
}
|
|
24985
|
+
set title(value) {
|
|
24986
|
+
const head = this.head;
|
|
24987
|
+
let title = head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
24988
|
+
if (title == null) {
|
|
24989
|
+
title = this.createElement("title");
|
|
24990
|
+
head.appendChild(title);
|
|
24497
24991
|
}
|
|
24498
|
-
|
|
24992
|
+
title.textContent = value;
|
|
24499
24993
|
}
|
|
24500
24994
|
};
|
|
24501
|
-
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
|
|
24507
|
-
|
|
24508
|
-
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
|
|
24518
|
-
|
|
24519
|
-
|
|
24520
|
-
})
|
|
24521
|
-
|
|
24522
|
-
|
|
24523
|
-
|
|
24524
|
-
|
|
24525
|
-
|
|
24526
|
-
|
|
24527
|
-
|
|
24995
|
+
function resetDocument(doc) {
|
|
24996
|
+
if (doc != null) {
|
|
24997
|
+
resetEventListeners(doc);
|
|
24998
|
+
const documentElement = doc.documentElement;
|
|
24999
|
+
if (documentElement != null) {
|
|
25000
|
+
resetElement(documentElement);
|
|
25001
|
+
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
25002
|
+
const childNode = documentElement.childNodes[i];
|
|
25003
|
+
resetElement(childNode);
|
|
25004
|
+
childNode.childNodes.length = 0;
|
|
25005
|
+
}
|
|
25006
|
+
}
|
|
25007
|
+
for (const key in doc) {
|
|
25008
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
25009
|
+
delete doc[key];
|
|
25010
|
+
}
|
|
25011
|
+
}
|
|
25012
|
+
try {
|
|
25013
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
25014
|
+
} catch (e) {
|
|
25015
|
+
}
|
|
25016
|
+
try {
|
|
25017
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
25018
|
+
} catch (e) {
|
|
25019
|
+
}
|
|
25020
|
+
try {
|
|
25021
|
+
doc.cookie = "";
|
|
25022
|
+
} catch (e) {
|
|
25023
|
+
}
|
|
25024
|
+
try {
|
|
25025
|
+
doc.referrer = "";
|
|
25026
|
+
} catch (e) {
|
|
24528
25027
|
}
|
|
24529
25028
|
}
|
|
24530
|
-
if (result.isErr) {
|
|
24531
|
-
const value = result.value;
|
|
24532
|
-
return err(value);
|
|
24533
|
-
}
|
|
24534
|
-
throw "should never get here";
|
|
24535
25029
|
}
|
|
24536
|
-
var
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
25030
|
+
var DOC_KEY_KEEPERS = /* @__PURE__ */ new Set([
|
|
25031
|
+
"nodeName",
|
|
25032
|
+
"nodeType",
|
|
25033
|
+
"nodeValue",
|
|
25034
|
+
"ownerDocument",
|
|
25035
|
+
"parentNode",
|
|
25036
|
+
"childNodes",
|
|
25037
|
+
"_shadowRoot"
|
|
25038
|
+
]);
|
|
25039
|
+
function getElementById(elm, id) {
|
|
25040
|
+
const children = elm.children;
|
|
25041
|
+
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
25042
|
+
const childElm = children[i];
|
|
25043
|
+
if (childElm.id === id) {
|
|
25044
|
+
return childElm;
|
|
25045
|
+
}
|
|
25046
|
+
const childElmFound = getElementById(childElm, id);
|
|
25047
|
+
if (childElmFound != null) {
|
|
25048
|
+
return childElmFound;
|
|
25049
|
+
}
|
|
24548
25050
|
}
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
25051
|
+
return null;
|
|
25052
|
+
}
|
|
25053
|
+
function getElementsByName(elm, elmName, foundElms = []) {
|
|
25054
|
+
const children = elm.children;
|
|
25055
|
+
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
25056
|
+
const childElm = children[i];
|
|
25057
|
+
if (childElm.name && childElm.name.toLowerCase() === elmName) {
|
|
25058
|
+
foundElms.push(childElm);
|
|
25059
|
+
}
|
|
25060
|
+
getElementsByName(childElm, elmName, foundElms);
|
|
24555
25061
|
}
|
|
24556
|
-
|
|
24557
|
-
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
25062
|
+
return foundElms;
|
|
24558
25063
|
}
|
|
24559
|
-
function
|
|
24560
|
-
|
|
24561
|
-
|
|
25064
|
+
function setOwnerDocument(elm, ownerDocument) {
|
|
25065
|
+
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
25066
|
+
elm.childNodes[i].ownerDocument = ownerDocument;
|
|
25067
|
+
if (elm.childNodes[i].nodeType === 1 /* ELEMENT_NODE */) {
|
|
25068
|
+
setOwnerDocument(elm.childNodes[i], ownerDocument);
|
|
25069
|
+
}
|
|
24562
25070
|
}
|
|
24563
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
24564
25071
|
}
|
|
24565
25072
|
|
|
24566
|
-
// src/
|
|
24567
|
-
var
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
);
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
);
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
);
|
|
24578
|
-
var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") || p.endsWith(".cjs"));
|
|
24579
|
-
|
|
24580
|
-
// src/utils/shadow-css.ts
|
|
24581
|
-
/**
|
|
24582
|
-
* @license
|
|
24583
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
24584
|
-
*
|
|
24585
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
24586
|
-
* found in the LICENSE file at https://angular.io/license
|
|
24587
|
-
*
|
|
24588
|
-
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
24589
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
24590
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
24591
|
-
*/
|
|
24592
|
-
var _polyfillHost = "-shadowcsshost";
|
|
24593
|
-
var _polyfillSlotted = "-shadowcssslotted";
|
|
24594
|
-
var _polyfillHostContext = "-shadowcsscontext";
|
|
24595
|
-
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
24596
|
-
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
24597
|
-
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
24598
|
-
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
24599
|
-
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
24600
|
-
var createSupportsRuleRe = (selector) => {
|
|
24601
|
-
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
24602
|
-
return new RegExp(
|
|
24603
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
24604
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
24605
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
24606
|
-
"g"
|
|
24607
|
-
);
|
|
24608
|
-
};
|
|
24609
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
24610
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
24611
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
24612
|
-
|
|
24613
|
-
// src/runtime/mode.ts
|
|
24614
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
24615
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
24616
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
24617
|
-
var baseClass = BUILD.lazyLoad ? class {
|
|
24618
|
-
} : globalThis.HTMLElement || class {
|
|
24619
|
-
};
|
|
25073
|
+
// src/hydrate/runner/create-window.ts
|
|
25074
|
+
var templateWindows = /* @__PURE__ */ new Map();
|
|
25075
|
+
function createWindowFromHtml(templateHtml, uniqueId) {
|
|
25076
|
+
let templateWindow = templateWindows.get(uniqueId);
|
|
25077
|
+
if (templateWindow == null) {
|
|
25078
|
+
templateWindow = new MockWindow(templateHtml);
|
|
25079
|
+
templateWindows.set(uniqueId, templateWindow);
|
|
25080
|
+
}
|
|
25081
|
+
const win2 = cloneWindow(templateWindow);
|
|
25082
|
+
return win2;
|
|
25083
|
+
}
|
|
24620
25084
|
|
|
24621
25085
|
// src/compiler/html/canonical-link.ts
|
|
24622
25086
|
var updateCanonicalLink = (doc, href) => {
|
|
@@ -25999,10 +26463,21 @@ function removeScripts(elm) {
|
|
|
25999
26463
|
}
|
|
26000
26464
|
}
|
|
26001
26465
|
|
|
26466
|
+
// src/hydrate/runner/index.ts
|
|
26467
|
+
var everywhere;
|
|
26468
|
+
try {
|
|
26469
|
+
everywhere = global || globalThis;
|
|
26470
|
+
} catch (e) {
|
|
26471
|
+
everywhere = window || globalThis;
|
|
26472
|
+
}
|
|
26473
|
+
everywhere.tagTransform = transformTag;
|
|
26474
|
+
|
|
26002
26475
|
exports.createWindowFromHtml = createWindowFromHtml;
|
|
26003
26476
|
exports.deserializeProperty = deserializeProperty;
|
|
26004
26477
|
exports.hydrateDocument = hydrateDocument;
|
|
26005
26478
|
exports.renderToString = renderToString;
|
|
26006
26479
|
exports.serializeDocumentToString = serializeDocumentToString;
|
|
26007
26480
|
exports.serializeProperty = serializeProperty;
|
|
26481
|
+
exports.setTagTransformer = setTagTransformer;
|
|
26008
26482
|
exports.streamToString = streamToString;
|
|
26483
|
+
exports.transformTag = transformTag;
|