@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.mjs
CHANGED
|
@@ -1,8 +1,99 @@
|
|
|
1
1
|
import { Readable } from 'stream';
|
|
2
2
|
|
|
3
|
+
// src/app-data/index.ts
|
|
4
|
+
var BUILD = {
|
|
5
|
+
allRenderFn: false,
|
|
6
|
+
element: true,
|
|
7
|
+
event: true,
|
|
8
|
+
hasRenderFn: true,
|
|
9
|
+
hostListener: true,
|
|
10
|
+
hostListenerTargetWindow: true,
|
|
11
|
+
hostListenerTargetDocument: true,
|
|
12
|
+
hostListenerTargetBody: true,
|
|
13
|
+
hostListenerTargetParent: false,
|
|
14
|
+
hostListenerTarget: true,
|
|
15
|
+
member: true,
|
|
16
|
+
method: true,
|
|
17
|
+
mode: true,
|
|
18
|
+
observeAttribute: true,
|
|
19
|
+
prop: true,
|
|
20
|
+
propMutable: true,
|
|
21
|
+
reflect: true,
|
|
22
|
+
scoped: true,
|
|
23
|
+
shadowDom: true,
|
|
24
|
+
slot: true,
|
|
25
|
+
cssAnnotations: true,
|
|
26
|
+
state: true,
|
|
27
|
+
style: true,
|
|
28
|
+
formAssociated: false,
|
|
29
|
+
svg: true,
|
|
30
|
+
updatable: true,
|
|
31
|
+
vdomAttribute: true,
|
|
32
|
+
vdomXlink: true,
|
|
33
|
+
vdomClass: true,
|
|
34
|
+
vdomFunctional: true,
|
|
35
|
+
vdomKey: true,
|
|
36
|
+
vdomListener: true,
|
|
37
|
+
vdomRef: true,
|
|
38
|
+
vdomPropOrAttr: true,
|
|
39
|
+
vdomRender: true,
|
|
40
|
+
vdomStyle: true,
|
|
41
|
+
vdomText: true,
|
|
42
|
+
propChangeCallback: true,
|
|
43
|
+
taskQueue: true,
|
|
44
|
+
hotModuleReplacement: false,
|
|
45
|
+
isDebug: false,
|
|
46
|
+
isDev: false,
|
|
47
|
+
isTesting: false,
|
|
48
|
+
hydrateServerSide: false,
|
|
49
|
+
hydrateClientSide: false,
|
|
50
|
+
lifecycleDOMEvents: false,
|
|
51
|
+
lazyLoad: false,
|
|
52
|
+
profile: false,
|
|
53
|
+
slotRelocation: true,
|
|
54
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
55
|
+
appendChildSlotFix: false,
|
|
56
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
57
|
+
cloneNodeFix: false,
|
|
58
|
+
hydratedAttribute: false,
|
|
59
|
+
hydratedClass: true,
|
|
60
|
+
// TODO(STENCIL-1305): remove this option
|
|
61
|
+
scriptDataOpts: false,
|
|
62
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
63
|
+
scopedSlotTextContentFix: false,
|
|
64
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
65
|
+
shadowDomShim: false,
|
|
66
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
67
|
+
slotChildNodesFix: false,
|
|
68
|
+
invisiblePrehydration: true,
|
|
69
|
+
propBoolean: true,
|
|
70
|
+
propNumber: true,
|
|
71
|
+
propString: true,
|
|
72
|
+
constructableCSS: true,
|
|
73
|
+
devTools: false,
|
|
74
|
+
shadowDelegatesFocus: true,
|
|
75
|
+
initializeNextTick: false,
|
|
76
|
+
asyncLoading: true,
|
|
77
|
+
asyncQueue: false,
|
|
78
|
+
// TODO: deprecated in favour of `setTagTransformer` and `transformTag`. Remove in 5.0
|
|
79
|
+
transformTagName: false,
|
|
80
|
+
attachStyles: true,
|
|
81
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
82
|
+
experimentalSlotFixes: false
|
|
83
|
+
};
|
|
84
|
+
var Env = {};
|
|
85
|
+
var NAMESPACE = (
|
|
86
|
+
/* default */
|
|
87
|
+
"app"
|
|
88
|
+
);
|
|
89
|
+
|
|
3
90
|
const modeResolutionChain = [];
|
|
4
91
|
|
|
5
92
|
function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResults, $stencilAfterHydrate, $stencilHydrateResolve) {
|
|
93
|
+
var everywhere;
|
|
94
|
+
try { everywhere = global || globalThis; }
|
|
95
|
+
catch (e) { everywhere = window || globalThis; }
|
|
96
|
+
|
|
6
97
|
var globalThis = $stencilWindow;
|
|
7
98
|
var self = $stencilWindow;
|
|
8
99
|
var top = $stencilWindow;
|
|
@@ -128,7 +219,7 @@ const NAMESPACE = 'design-system';
|
|
|
128
219
|
const BUILD = /* design-system */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
|
|
129
220
|
|
|
130
221
|
/*
|
|
131
|
-
Stencil Hydrate Platform v4.
|
|
222
|
+
Stencil Hydrate Platform v4.39.0 | MIT Licensed | https://stenciljs.com
|
|
132
223
|
*/
|
|
133
224
|
var __defProp = Object.defineProperty;
|
|
134
225
|
var __export = (target, all) => {
|
|
@@ -642,6 +733,9 @@ var attachStyles = (hostRef) => {
|
|
|
642
733
|
};
|
|
643
734
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
644
735
|
var h = (nodeName, vnodeData, ...children) => {
|
|
736
|
+
if (typeof nodeName === "string") {
|
|
737
|
+
nodeName = transformTag(nodeName);
|
|
738
|
+
}
|
|
645
739
|
let child = null;
|
|
646
740
|
let key = null;
|
|
647
741
|
let slotName = null;
|
|
@@ -798,7 +892,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
798
892
|
const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
|
|
799
893
|
const node = childRenderNode.$elm$;
|
|
800
894
|
if (!shadowRoot) {
|
|
801
|
-
node["s-hn"] = tagName.toUpperCase();
|
|
895
|
+
node["s-hn"] = transformTag(tagName).toUpperCase();
|
|
802
896
|
if (childRenderNode.$tag$ === "slot") {
|
|
803
897
|
node["s-cr"] = hostElm["s-cr"];
|
|
804
898
|
}
|
|
@@ -2776,6 +2870,9 @@ var getHostListenerTarget = (doc, elm, flags) => {
|
|
|
2776
2870
|
return elm;
|
|
2777
2871
|
};
|
|
2778
2872
|
var hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
|
|
2873
|
+
function transformTag(tag) {
|
|
2874
|
+
return tag;
|
|
2875
|
+
}
|
|
2779
2876
|
|
|
2780
2877
|
// src/runtime/vdom/vdom-annotations.ts
|
|
2781
2878
|
var insertVdomAnnotations = (doc, staticComponents) => {
|
|
@@ -3333,9 +3430,15 @@ var isMemberInElement = (elm, memberName) => {
|
|
|
3333
3430
|
var registerComponents = (Cstrs) => {
|
|
3334
3431
|
for (const Cstr of Cstrs) {
|
|
3335
3432
|
const exportName = Cstr.cmpMeta.$tagName$;
|
|
3433
|
+
const transformedTagName = everywhere.tagTransform(exportName);
|
|
3336
3434
|
cmpModules.set(exportName, {
|
|
3337
3435
|
[exportName]: Cstr
|
|
3338
3436
|
});
|
|
3437
|
+
if (transformedTagName !== exportName) {
|
|
3438
|
+
cmpModules.set(transformedTagName, {
|
|
3439
|
+
[transformedTagName]: Cstr
|
|
3440
|
+
});
|
|
3441
|
+
}
|
|
3339
3442
|
}
|
|
3340
3443
|
};
|
|
3341
3444
|
var win = window;
|
|
@@ -3678,7 +3781,7 @@ function resolveColor(input, fallback = '#025497') {
|
|
|
3678
3781
|
return mapped || input;
|
|
3679
3782
|
}
|
|
3680
3783
|
|
|
3681
|
-
const sdBadgeCss =
|
|
3784
|
+
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}`;
|
|
3682
3785
|
|
|
3683
3786
|
class SdBadge {
|
|
3684
3787
|
constructor(hostRef) {
|
|
@@ -3689,9 +3792,9 @@ class SdBadge {
|
|
|
3689
3792
|
label = '';
|
|
3690
3793
|
render() {
|
|
3691
3794
|
const resolvedColor = resolveColor(this.color);
|
|
3692
|
-
return (hAsync(Host, { key: '
|
|
3795
|
+
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))));
|
|
3693
3796
|
}
|
|
3694
|
-
static get style() { return sdBadgeCss; }
|
|
3797
|
+
static get style() { return sdBadgeCss(); }
|
|
3695
3798
|
static get cmpMeta() { return {
|
|
3696
3799
|
"$flags$": 770,
|
|
3697
3800
|
"$tagName$": "sd-badge",
|
|
@@ -3706,7 +3809,7 @@ class SdBadge {
|
|
|
3706
3809
|
}; }
|
|
3707
3810
|
}
|
|
3708
3811
|
|
|
3709
|
-
const sdButtonCss =
|
|
3812
|
+
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}`;
|
|
3710
3813
|
|
|
3711
3814
|
const ICON_SIZES = {
|
|
3712
3815
|
xs: 12,
|
|
@@ -3763,7 +3866,7 @@ class SdButton {
|
|
|
3763
3866
|
const resolvedColor = resolveColor(this.color);
|
|
3764
3867
|
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 }))))));
|
|
3765
3868
|
}
|
|
3766
|
-
static get style() { return sdButtonCss; }
|
|
3869
|
+
static get style() { return sdButtonCss(); }
|
|
3767
3870
|
static get cmpMeta() { return {
|
|
3768
3871
|
"$flags$": 768,
|
|
3769
3872
|
"$tagName$": "sd-button",
|
|
@@ -3787,7 +3890,7 @@ class SdButton {
|
|
|
3787
3890
|
}; }
|
|
3788
3891
|
}
|
|
3789
3892
|
|
|
3790
|
-
const sdCardCss =
|
|
3893
|
+
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}`;
|
|
3791
3894
|
|
|
3792
3895
|
class SdCard {
|
|
3793
3896
|
constructor(hostRef) {
|
|
@@ -3796,9 +3899,9 @@ class SdCard {
|
|
|
3796
3899
|
bordered = true;
|
|
3797
3900
|
class = '';
|
|
3798
3901
|
render() {
|
|
3799
|
-
return (hAsync(Host, { key: '
|
|
3902
|
+
return (hAsync(Host, { key: '4a44b9ef84a83b91879dabaa099a21b499baad2c' }, hAsync("div", { key: 'cb8499ddef896bf1e2ba753dd4b0a35f41f7e39f', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, hAsync("slot", { key: 'e7d6f9ffa8ad8d5061471a6e8cbeb5c4d5d5f2b4' }))));
|
|
3800
3903
|
}
|
|
3801
|
-
static get style() { return sdCardCss; }
|
|
3904
|
+
static get style() { return sdCardCss(); }
|
|
3802
3905
|
static get cmpMeta() { return {
|
|
3803
3906
|
"$flags$": 772,
|
|
3804
3907
|
"$tagName$": "sd-card",
|
|
@@ -3812,7 +3915,7 @@ class SdCard {
|
|
|
3812
3915
|
}; }
|
|
3813
3916
|
}
|
|
3814
3917
|
|
|
3815
|
-
const sdCheckboxCss =
|
|
3918
|
+
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}`;
|
|
3816
3919
|
|
|
3817
3920
|
class SdCheckbox {
|
|
3818
3921
|
constructor(hostRef) {
|
|
@@ -3891,7 +3994,7 @@ class SdCheckbox {
|
|
|
3891
3994
|
static get watchers() { return {
|
|
3892
3995
|
"checked": ["watchValueHandler"]
|
|
3893
3996
|
}; }
|
|
3894
|
-
static get style() { return sdCheckboxCss; }
|
|
3997
|
+
static get style() { return sdCheckboxCss(); }
|
|
3895
3998
|
static get cmpMeta() { return {
|
|
3896
3999
|
"$flags$": 768,
|
|
3897
4000
|
"$tagName$": "sd-checkbox",
|
|
@@ -3908,7 +4011,7 @@ class SdCheckbox {
|
|
|
3908
4011
|
}; }
|
|
3909
4012
|
}
|
|
3910
4013
|
|
|
3911
|
-
const sdDateBoxCss =
|
|
4014
|
+
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}`;
|
|
3912
4015
|
|
|
3913
4016
|
class SdDateBox {
|
|
3914
4017
|
constructor(hostRef) {
|
|
@@ -3952,7 +4055,7 @@ class SdDateBox {
|
|
|
3952
4055
|
'sd-date-box--type-end': this.type === 'end',
|
|
3953
4056
|
}, 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))));
|
|
3954
4057
|
}
|
|
3955
|
-
static get style() { return sdDateBoxCss; }
|
|
4058
|
+
static get style() { return sdDateBoxCss(); }
|
|
3956
4059
|
static get cmpMeta() { return {
|
|
3957
4060
|
"$flags$": 770,
|
|
3958
4061
|
"$tagName$": "sd-date-box",
|
|
@@ -4028,7 +4131,7 @@ const useDatePicker = () => {
|
|
|
4028
4131
|
return { formatDate, createCalendar, calculateYearMonth };
|
|
4029
4132
|
};
|
|
4030
4133
|
|
|
4031
|
-
const sdDatePickerCss =
|
|
4134
|
+
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))}`;
|
|
4032
4135
|
|
|
4033
4136
|
class SdDatePicker {
|
|
4034
4137
|
constructor(hostRef) {
|
|
@@ -4107,7 +4210,7 @@ class SdDatePicker {
|
|
|
4107
4210
|
this.isOpen = false;
|
|
4108
4211
|
};
|
|
4109
4212
|
render() {
|
|
4110
|
-
return (hAsync(Host, { key: '
|
|
4213
|
+
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" }, [
|
|
4111
4214
|
...this.calendar.prevMonthDays,
|
|
4112
4215
|
...this.calendar.days,
|
|
4113
4216
|
...this.calendar.afterMonthDays,
|
|
@@ -4118,7 +4221,7 @@ class SdDatePicker {
|
|
|
4118
4221
|
: undefined }));
|
|
4119
4222
|
})))))));
|
|
4120
4223
|
}
|
|
4121
|
-
static get style() { return sdDatePickerCss; }
|
|
4224
|
+
static get style() { return sdDatePickerCss(); }
|
|
4122
4225
|
static get cmpMeta() { return {
|
|
4123
4226
|
"$flags$": 770,
|
|
4124
4227
|
"$tagName$": "sd-date-picker",
|
|
@@ -4138,7 +4241,7 @@ class SdDatePicker {
|
|
|
4138
4241
|
}; }
|
|
4139
4242
|
}
|
|
4140
4243
|
|
|
4141
|
-
const sdDateRangePickerCss =
|
|
4244
|
+
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}`;
|
|
4142
4245
|
|
|
4143
4246
|
class SdDateRangePicker {
|
|
4144
4247
|
constructor(hostRef) {
|
|
@@ -4280,9 +4383,9 @@ class SdDateRangePicker {
|
|
|
4280
4383
|
this.isOpen = false;
|
|
4281
4384
|
};
|
|
4282
4385
|
render() {
|
|
4283
|
-
return (hAsync(Host, { key: '
|
|
4386
|
+
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: {
|
|
4284
4387
|
margin: '0 0 0 8px',
|
|
4285
|
-
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '
|
|
4388
|
+
}, 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
|
|
4286
4389
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
4287
4390
|
: `${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 ===
|
|
4288
4391
|
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 ===
|
|
@@ -4290,7 +4393,7 @@ class SdDateRangePicker {
|
|
|
4290
4393
|
? true
|
|
4291
4394
|
: 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)) }))))))))))))));
|
|
4292
4395
|
}
|
|
4293
|
-
static get style() { return sdDateRangePickerCss; }
|
|
4396
|
+
static get style() { return sdDateRangePickerCss(); }
|
|
4294
4397
|
static get cmpMeta() { return {
|
|
4295
4398
|
"$flags$": 770,
|
|
4296
4399
|
"$tagName$": "sd-date-range-picker",
|
|
@@ -4312,7 +4415,141 @@ class SdDateRangePicker {
|
|
|
4312
4415
|
}; }
|
|
4313
4416
|
}
|
|
4314
4417
|
|
|
4315
|
-
const
|
|
4418
|
+
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}`;
|
|
4419
|
+
|
|
4420
|
+
class SdFilePicker {
|
|
4421
|
+
constructor(hostRef) {
|
|
4422
|
+
registerInstance(this, hostRef);
|
|
4423
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
4424
|
+
}
|
|
4425
|
+
get el() { return getElement(this); }
|
|
4426
|
+
value = null;
|
|
4427
|
+
placeholder = 'Click to upload';
|
|
4428
|
+
disabled = false;
|
|
4429
|
+
inline = false;
|
|
4430
|
+
multiple = false;
|
|
4431
|
+
accept;
|
|
4432
|
+
width;
|
|
4433
|
+
internalValue = null;
|
|
4434
|
+
hovered = false;
|
|
4435
|
+
showTooltip = false;
|
|
4436
|
+
fileInputRef;
|
|
4437
|
+
fileNamesRef;
|
|
4438
|
+
sdChange;
|
|
4439
|
+
valueChanged(newValue) {
|
|
4440
|
+
this.internalValue = newValue;
|
|
4441
|
+
}
|
|
4442
|
+
componentDidLoad() {
|
|
4443
|
+
this.checkOverflow();
|
|
4444
|
+
}
|
|
4445
|
+
componentDidUpdate() {
|
|
4446
|
+
this.checkOverflow();
|
|
4447
|
+
}
|
|
4448
|
+
handleFileChange = (event) => {
|
|
4449
|
+
const input = event.target;
|
|
4450
|
+
const files = input.files;
|
|
4451
|
+
if (!files || files.length === 0) {
|
|
4452
|
+
return;
|
|
4453
|
+
}
|
|
4454
|
+
const fileArray = Array.from(files);
|
|
4455
|
+
if (this.multiple) {
|
|
4456
|
+
this.internalValue = fileArray;
|
|
4457
|
+
}
|
|
4458
|
+
else {
|
|
4459
|
+
this.internalValue = fileArray[0];
|
|
4460
|
+
}
|
|
4461
|
+
this.value = this.internalValue;
|
|
4462
|
+
this.sdChange?.emit(this.value);
|
|
4463
|
+
};
|
|
4464
|
+
handleClear = (event) => {
|
|
4465
|
+
event.stopPropagation();
|
|
4466
|
+
const clearedValue = this.multiple ? [] : null;
|
|
4467
|
+
this.value = clearedValue;
|
|
4468
|
+
this.internalValue = clearedValue;
|
|
4469
|
+
this.sdChange?.emit(clearedValue);
|
|
4470
|
+
if (this.fileInputRef) {
|
|
4471
|
+
this.fileInputRef.value = '';
|
|
4472
|
+
}
|
|
4473
|
+
};
|
|
4474
|
+
handleClick = () => {
|
|
4475
|
+
if (this.disabled)
|
|
4476
|
+
return;
|
|
4477
|
+
this.fileInputRef?.click();
|
|
4478
|
+
};
|
|
4479
|
+
getStatusClass() {
|
|
4480
|
+
if (this.disabled)
|
|
4481
|
+
return 'sd-file-picker--disabled';
|
|
4482
|
+
if (this.hasFiles())
|
|
4483
|
+
return 'sd-file-picker--active';
|
|
4484
|
+
return '';
|
|
4485
|
+
}
|
|
4486
|
+
hasFiles() {
|
|
4487
|
+
if (!this.internalValue)
|
|
4488
|
+
return false;
|
|
4489
|
+
if (Array.isArray(this.internalValue)) {
|
|
4490
|
+
return this.internalValue.length > 0;
|
|
4491
|
+
}
|
|
4492
|
+
return true;
|
|
4493
|
+
}
|
|
4494
|
+
getDisplayText() {
|
|
4495
|
+
if (!this.hasFiles())
|
|
4496
|
+
return this.placeholder;
|
|
4497
|
+
if (Array.isArray(this.internalValue)) {
|
|
4498
|
+
return this.internalValue.map(f => f.name).join(', ');
|
|
4499
|
+
}
|
|
4500
|
+
return this.internalValue?.name || this.placeholder;
|
|
4501
|
+
}
|
|
4502
|
+
checkOverflow() {
|
|
4503
|
+
if (!this.fileNamesRef)
|
|
4504
|
+
return;
|
|
4505
|
+
const isOverflowing = this.fileNamesRef.scrollWidth > this.fileNamesRef.clientWidth;
|
|
4506
|
+
this.showTooltip = isOverflowing;
|
|
4507
|
+
}
|
|
4508
|
+
getIconColor() {
|
|
4509
|
+
if (this.disabled) {
|
|
4510
|
+
return this.inline ? 'grey_45' : 'grey_55';
|
|
4511
|
+
}
|
|
4512
|
+
return 'grey_70';
|
|
4513
|
+
}
|
|
4514
|
+
render() {
|
|
4515
|
+
const hasFiles = this.hasFiles();
|
|
4516
|
+
const displayText = this.getDisplayText();
|
|
4517
|
+
return (hAsync("div", { key: 'bfa4054517dcf1ef728a2354927bc40c177274ce', class: {
|
|
4518
|
+
'sd-file-picker': true,
|
|
4519
|
+
[this.getStatusClass()]: true,
|
|
4520
|
+
'sd-file-picker--inline': this.inline,
|
|
4521
|
+
}, 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: {
|
|
4522
|
+
'sd-file-picker__text': true,
|
|
4523
|
+
'sd-file-picker__text--placeholder': !hasFiles,
|
|
4524
|
+
'sd-file-picker__text--active': hasFiles,
|
|
4525
|
+
} }, 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))));
|
|
4526
|
+
}
|
|
4527
|
+
static get watchers() { return {
|
|
4528
|
+
"value": ["valueChanged"]
|
|
4529
|
+
}; }
|
|
4530
|
+
static get style() { return sdFilePickerCss(); }
|
|
4531
|
+
static get cmpMeta() { return {
|
|
4532
|
+
"$flags$": 768,
|
|
4533
|
+
"$tagName$": "sd-file-picker",
|
|
4534
|
+
"$members$": {
|
|
4535
|
+
"value": [1040],
|
|
4536
|
+
"placeholder": [1],
|
|
4537
|
+
"disabled": [4],
|
|
4538
|
+
"inline": [4],
|
|
4539
|
+
"multiple": [4],
|
|
4540
|
+
"accept": [1],
|
|
4541
|
+
"width": [8],
|
|
4542
|
+
"internalValue": [32],
|
|
4543
|
+
"hovered": [32],
|
|
4544
|
+
"showTooltip": [32]
|
|
4545
|
+
},
|
|
4546
|
+
"$listeners$": undefined,
|
|
4547
|
+
"$lazyBundleId$": "-",
|
|
4548
|
+
"$attrsToReflect$": []
|
|
4549
|
+
}; }
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
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}`;
|
|
4316
4553
|
|
|
4317
4554
|
const GUIDE_LABEL = {
|
|
4318
4555
|
help: '활용 TIP',
|
|
@@ -4365,11 +4602,11 @@ class SdGuide {
|
|
|
4365
4602
|
};
|
|
4366
4603
|
render() {
|
|
4367
4604
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
4368
|
-
return (hAsync(Host, { key: '
|
|
4605
|
+
return (hAsync(Host, { key: 'c15218a6d9dbef0147701e31f798a3e6fa8e7679', style: {
|
|
4369
4606
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
4370
|
-
} }, hAsync("sd-button", { key: '
|
|
4607
|
+
} }, 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,
|
|
4371
4608
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
4372
|
-
onSdClick: this.closeDropdown }), hAsync("div", { key: '
|
|
4609
|
+
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)))))));
|
|
4373
4610
|
}
|
|
4374
4611
|
// 현재 2depth까지만 스타일 적용
|
|
4375
4612
|
renderListItem(message, depth = 0) {
|
|
@@ -4387,7 +4624,7 @@ class SdGuide {
|
|
|
4387
4624
|
const listContent = message.replace(/ /gi, ' ');
|
|
4388
4625
|
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: listContent })));
|
|
4389
4626
|
};
|
|
4390
|
-
static get style() { return sdGuideCss; }
|
|
4627
|
+
static get style() { return sdGuideCss(); }
|
|
4391
4628
|
static get cmpMeta() { return {
|
|
4392
4629
|
"$flags$": 768,
|
|
4393
4630
|
"$tagName$": "sd-guide",
|
|
@@ -6386,7 +6623,7 @@ const Icons = {
|
|
|
6386
6623
|
...Youtube,
|
|
6387
6624
|
};
|
|
6388
6625
|
|
|
6389
|
-
const sdIconCss =
|
|
6626
|
+
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)}`;
|
|
6390
6627
|
|
|
6391
6628
|
class SdIcon {
|
|
6392
6629
|
constructor(hostRef) {
|
|
@@ -6415,9 +6652,9 @@ class SdIcon {
|
|
|
6415
6652
|
}
|
|
6416
6653
|
render() {
|
|
6417
6654
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
6418
|
-
return (hAsync("i", { key: '
|
|
6655
|
+
return (hAsync("i", { key: 'f3ff9d0b1134a67b6f8897ede7b4cd449589d618', class: this.getIconClasses(), style: this.iconStyle }, hAsync(IconComponent, { key: '0acd90f22d7f2e3e875b690d41dbb4a297b42d7f', color: this.resolvedColor })));
|
|
6419
6656
|
}
|
|
6420
|
-
static get style() { return sdIconCss; }
|
|
6657
|
+
static get style() { return sdIconCss(); }
|
|
6421
6658
|
static get cmpMeta() { return {
|
|
6422
6659
|
"$flags$": 768,
|
|
6423
6660
|
"$tagName$": "sd-icon",
|
|
@@ -6435,7 +6672,7 @@ class SdIcon {
|
|
|
6435
6672
|
}; }
|
|
6436
6673
|
}
|
|
6437
6674
|
|
|
6438
|
-
const sdInputCss =
|
|
6675
|
+
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}`;
|
|
6439
6676
|
|
|
6440
6677
|
class SdInput {
|
|
6441
6678
|
constructor(hostRef) {
|
|
@@ -6535,11 +6772,11 @@ class SdInput {
|
|
|
6535
6772
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
6536
6773
|
}
|
|
6537
6774
|
: {};
|
|
6538
|
-
return (hAsync(Host, { key: '
|
|
6775
|
+
return (hAsync(Host, { key: '265fb05d7c005cd843443475d74c2e8127e4ae2d', style: inputWidth }, this.label && hAsync("div", { key: '2ce6d2611927ec3e491122b8a17b94a2b39edcd5', class: "sd-input__label" }, this.label), hAsync("label", { key: '6731592e7d55098daf4aa8b8177233897daf2900', class: {
|
|
6539
6776
|
'sd-input': true,
|
|
6540
6777
|
[this.getInputStatus()]: true,
|
|
6541
6778
|
'sd-input--barcode': !!this.barcode,
|
|
6542
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: '
|
|
6779
|
+
}, 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: () => {
|
|
6543
6780
|
this.internalValue = '';
|
|
6544
6781
|
this.sdChange?.emit(this.internalValue);
|
|
6545
6782
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -6549,7 +6786,7 @@ class SdInput {
|
|
|
6549
6786
|
"value": ["valueChanged"],
|
|
6550
6787
|
"internalValue": ["internalValueChanged"]
|
|
6551
6788
|
}; }
|
|
6552
|
-
static get style() { return sdInputCss; }
|
|
6789
|
+
static get style() { return sdInputCss(); }
|
|
6553
6790
|
static get cmpMeta() { return {
|
|
6554
6791
|
"$flags$": 772,
|
|
6555
6792
|
"$tagName$": "sd-input",
|
|
@@ -6579,16 +6816,16 @@ class SdInput {
|
|
|
6579
6816
|
}; }
|
|
6580
6817
|
}
|
|
6581
6818
|
|
|
6582
|
-
const sdLoadingSpinnerCss =
|
|
6819
|
+
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}}`;
|
|
6583
6820
|
|
|
6584
6821
|
class SdLoadingSpinner {
|
|
6585
6822
|
constructor(hostRef) {
|
|
6586
6823
|
registerInstance(this, hostRef);
|
|
6587
6824
|
}
|
|
6588
6825
|
render() {
|
|
6589
|
-
return (hAsync(Host, { key: '
|
|
6826
|
+
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" }))));
|
|
6590
6827
|
}
|
|
6591
|
-
static get style() { return sdLoadingSpinnerCss; }
|
|
6828
|
+
static get style() { return sdLoadingSpinnerCss(); }
|
|
6592
6829
|
static get cmpMeta() { return {
|
|
6593
6830
|
"$flags$": 256,
|
|
6594
6831
|
"$tagName$": "sd-loading-spinner",
|
|
@@ -6599,7 +6836,7 @@ class SdLoadingSpinner {
|
|
|
6599
6836
|
}; }
|
|
6600
6837
|
}
|
|
6601
6838
|
|
|
6602
|
-
const sdModalCardCss =
|
|
6839
|
+
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}`;
|
|
6603
6840
|
|
|
6604
6841
|
class SdModalCard {
|
|
6605
6842
|
constructor(hostRef) {
|
|
@@ -6644,7 +6881,7 @@ class SdModalCard {
|
|
|
6644
6881
|
render() {
|
|
6645
6882
|
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 }) })))))));
|
|
6646
6883
|
}
|
|
6647
|
-
static get style() { return sdModalCardCss; }
|
|
6884
|
+
static get style() { return sdModalCardCss(); }
|
|
6648
6885
|
static get cmpMeta() { return {
|
|
6649
6886
|
"$flags$": 772,
|
|
6650
6887
|
"$tagName$": "sd-modal-card",
|
|
@@ -6664,7 +6901,7 @@ class SdModalCard {
|
|
|
6664
6901
|
}; }
|
|
6665
6902
|
}
|
|
6666
6903
|
|
|
6667
|
-
const sdPaginationCss =
|
|
6904
|
+
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}`;
|
|
6668
6905
|
|
|
6669
6906
|
const BUTTON_WIDTH = {
|
|
6670
6907
|
1: 26,
|
|
@@ -6738,14 +6975,14 @@ class SdPagination {
|
|
|
6738
6975
|
}
|
|
6739
6976
|
}
|
|
6740
6977
|
render() {
|
|
6741
|
-
return (hAsync("div", { key: '
|
|
6978
|
+
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: {
|
|
6742
6979
|
'pagination-btn': true,
|
|
6743
6980
|
'pagination-btn--selected': this.currentPage === n,
|
|
6744
6981
|
}, disabled: this.currentPage === n, style: {
|
|
6745
6982
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
6746
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
6983
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '108017450555fb73c74c71cc7605ef8af5679a20', class: "append-btns" }, this.renderNextButtons())));
|
|
6747
6984
|
}
|
|
6748
|
-
static get style() { return sdPaginationCss; }
|
|
6985
|
+
static get style() { return sdPaginationCss(); }
|
|
6749
6986
|
static get cmpMeta() { return {
|
|
6750
6987
|
"$flags$": 768,
|
|
6751
6988
|
"$tagName$": "sd-pagination",
|
|
@@ -6762,7 +6999,7 @@ class SdPagination {
|
|
|
6762
6999
|
|
|
6763
7000
|
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" })));
|
|
6764
7001
|
|
|
6765
|
-
const sdPopoverCss =
|
|
7002
|
+
const sdPopoverCss = () => `.sd-popover{position:relative;cursor:pointer;display:inline-block}`;
|
|
6766
7003
|
|
|
6767
7004
|
class SdPopover {
|
|
6768
7005
|
constructor(hostRef) {
|
|
@@ -6797,16 +7034,16 @@ class SdPopover {
|
|
|
6797
7034
|
this.showPopover = false;
|
|
6798
7035
|
};
|
|
6799
7036
|
render() {
|
|
6800
|
-
return (hAsync(Fragment, { key: '
|
|
7037
|
+
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: {
|
|
6801
7038
|
'sd-popover-menu': true,
|
|
6802
7039
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
6803
7040
|
[this.menuClass]: !!this.menuClass,
|
|
6804
|
-
} }, hAsync("i", { key: '
|
|
7041
|
+
} }, 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" }))))))));
|
|
6805
7042
|
}
|
|
6806
7043
|
static get watchers() { return {
|
|
6807
7044
|
"show": ["watchShowHandler"]
|
|
6808
7045
|
}; }
|
|
6809
|
-
static get style() { return sdPopoverCss; }
|
|
7046
|
+
static get style() { return sdPopoverCss(); }
|
|
6810
7047
|
static get cmpMeta() { return {
|
|
6811
7048
|
"$flags$": 777,
|
|
6812
7049
|
"$tagName$": "sd-popover",
|
|
@@ -6952,7 +7189,7 @@ class SdPortal {
|
|
|
6952
7189
|
this.sdClose.emit();
|
|
6953
7190
|
}
|
|
6954
7191
|
render() {
|
|
6955
|
-
return hAsync("slot", { key: '
|
|
7192
|
+
return hAsync("slot", { key: '5995c7edbf0a54b6efb9afa2b5f67f078282acd8' });
|
|
6956
7193
|
}
|
|
6957
7194
|
static get cmpMeta() { return {
|
|
6958
7195
|
"$flags$": 772,
|
|
@@ -6970,7 +7207,7 @@ class SdPortal {
|
|
|
6970
7207
|
}; }
|
|
6971
7208
|
}
|
|
6972
7209
|
|
|
6973
|
-
const sdProgressCss =
|
|
7210
|
+
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}`;
|
|
6974
7211
|
|
|
6975
7212
|
class SdProgress {
|
|
6976
7213
|
constructor(hostRef) {
|
|
@@ -6989,10 +7226,10 @@ class SdProgress {
|
|
|
6989
7226
|
error: '#FB4444',
|
|
6990
7227
|
};
|
|
6991
7228
|
render() {
|
|
6992
|
-
return (hAsync(Host, { key: '
|
|
7229
|
+
return (hAsync(Host, { key: 'ecd9801daf4fcb4a3a680286354c436b1423778a', style: {
|
|
6993
7230
|
'--progress-color': this.statusColor[this.status],
|
|
6994
7231
|
'--progress-percentage': `${this.percentage}%`,
|
|
6995
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
7232
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '167d080cefe222ac28d966bbcf0aca4a122c98ea', class: "sd-progress__label" }, this.label)));
|
|
6996
7233
|
}
|
|
6997
7234
|
renderBarProgress() {
|
|
6998
7235
|
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, "%")));
|
|
@@ -7005,7 +7242,7 @@ class SdProgress {
|
|
|
7005
7242
|
const progressSize = `${this.size / 2}px`;
|
|
7006
7243
|
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, " %")));
|
|
7007
7244
|
}
|
|
7008
|
-
static get style() { return sdProgressCss; }
|
|
7245
|
+
static get style() { return sdProgressCss(); }
|
|
7009
7246
|
static get cmpMeta() { return {
|
|
7010
7247
|
"$flags$": 768,
|
|
7011
7248
|
"$tagName$": "sd-progress",
|
|
@@ -7023,7 +7260,87 @@ class SdProgress {
|
|
|
7023
7260
|
}; }
|
|
7024
7261
|
}
|
|
7025
7262
|
|
|
7026
|
-
const
|
|
7263
|
+
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}`;
|
|
7264
|
+
|
|
7265
|
+
class SdRadioButtonGroup {
|
|
7266
|
+
constructor(hostRef) {
|
|
7267
|
+
registerInstance(this, hostRef);
|
|
7268
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
7269
|
+
}
|
|
7270
|
+
value;
|
|
7271
|
+
radioOptions = [];
|
|
7272
|
+
size = 'md';
|
|
7273
|
+
disabled = false;
|
|
7274
|
+
name;
|
|
7275
|
+
selectedValue;
|
|
7276
|
+
sdChange;
|
|
7277
|
+
componentWillLoad() {
|
|
7278
|
+
if (this.value !== undefined && this.value !== null) {
|
|
7279
|
+
this.selectedValue = this.value;
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7282
|
+
valueChanged(newValue) {
|
|
7283
|
+
this.selectedValue = newValue;
|
|
7284
|
+
}
|
|
7285
|
+
handleRadioChange = (optionValue, optionDisabled) => {
|
|
7286
|
+
if (this.disabled || optionDisabled)
|
|
7287
|
+
return;
|
|
7288
|
+
this.selectedValue = optionValue;
|
|
7289
|
+
this.value = optionValue;
|
|
7290
|
+
this.sdChange.emit(optionValue);
|
|
7291
|
+
};
|
|
7292
|
+
isOptionSelected(option) {
|
|
7293
|
+
return this.selectedValue === option.value;
|
|
7294
|
+
}
|
|
7295
|
+
isOptionDisabled(option) {
|
|
7296
|
+
return this.disabled || !!option.disabled;
|
|
7297
|
+
}
|
|
7298
|
+
getButtonClasses(option) {
|
|
7299
|
+
const classes = [
|
|
7300
|
+
'sd-radio-button-group__option',
|
|
7301
|
+
this.isOptionSelected(option)
|
|
7302
|
+
? 'sd-radio-button-group__option--selected'
|
|
7303
|
+
: 'sd-radio-button-group__option--unselected',
|
|
7304
|
+
];
|
|
7305
|
+
if (this.isOptionDisabled(option)) {
|
|
7306
|
+
classes.push('sd-radio-button-group__option--disabled');
|
|
7307
|
+
}
|
|
7308
|
+
return classes.join(' ');
|
|
7309
|
+
}
|
|
7310
|
+
getGroupClasses() {
|
|
7311
|
+
const classes = ['sd-radio-button-group', `sd-radio-button-group--${this.size}`];
|
|
7312
|
+
return classes.join(' ');
|
|
7313
|
+
}
|
|
7314
|
+
render() {
|
|
7315
|
+
const groupName = this.name || `sd-radio-button-group-${Math.random().toString(36).substring(2, 11)}`;
|
|
7316
|
+
return (hAsync("div", { key: '11b2fa2d7c019ea5d1c535e8f36ac488169e11e9', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map((option, index) => {
|
|
7317
|
+
const isSelected = this.isOptionSelected(option);
|
|
7318
|
+
const isDisabled = this.isOptionDisabled(option);
|
|
7319
|
+
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)));
|
|
7320
|
+
})));
|
|
7321
|
+
}
|
|
7322
|
+
static get watchers() { return {
|
|
7323
|
+
"value": ["valueChanged"]
|
|
7324
|
+
}; }
|
|
7325
|
+
static get style() { return sdRadioButtonGroupCss(); }
|
|
7326
|
+
static get cmpMeta() { return {
|
|
7327
|
+
"$flags$": 768,
|
|
7328
|
+
"$tagName$": "sd-radio-button-group",
|
|
7329
|
+
"$members$": {
|
|
7330
|
+
"value": [1544],
|
|
7331
|
+
"radioOptions": [1040],
|
|
7332
|
+
"size": [1],
|
|
7333
|
+
"disabled": [4],
|
|
7334
|
+
"name": [1],
|
|
7335
|
+
"selectedValue": [32]
|
|
7336
|
+
},
|
|
7337
|
+
"$listeners$": undefined,
|
|
7338
|
+
"$lazyBundleId$": "-",
|
|
7339
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
7340
|
+
}; }
|
|
7341
|
+
}
|
|
7342
|
+
|
|
7343
|
+
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}`;
|
|
7027
7344
|
|
|
7028
7345
|
class SdRadioGroup {
|
|
7029
7346
|
constructor(hostRef) {
|
|
@@ -7076,7 +7393,7 @@ class SdRadioGroup {
|
|
|
7076
7393
|
}
|
|
7077
7394
|
render() {
|
|
7078
7395
|
const groupName = this.name || `sd-radio-group-${Math.random().toString(36).substring(2, 11)}`;
|
|
7079
|
-
return (hAsync("div", { key: '
|
|
7396
|
+
return (hAsync("div", { key: '41a5801484b12c0688d34d7225b07ce4ac8073fa', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map((option, index) => {
|
|
7080
7397
|
const isSelected = this.isOptionSelected(option);
|
|
7081
7398
|
const isDisabled = this.isOptionDisabled(option);
|
|
7082
7399
|
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)));
|
|
@@ -7085,7 +7402,7 @@ class SdRadioGroup {
|
|
|
7085
7402
|
static get watchers() { return {
|
|
7086
7403
|
"value": ["valueChanged"]
|
|
7087
7404
|
}; }
|
|
7088
|
-
static get style() { return sdRadioGroupCss; }
|
|
7405
|
+
static get style() { return sdRadioGroupCss(); }
|
|
7089
7406
|
static get cmpMeta() { return {
|
|
7090
7407
|
"$flags$": 768,
|
|
7091
7408
|
"$tagName$": "sd-radio-group",
|
|
@@ -7215,7 +7532,7 @@ class SelectKeyboardNavigation {
|
|
|
7215
7532
|
}
|
|
7216
7533
|
}
|
|
7217
7534
|
|
|
7218
|
-
const sdSelectCss =
|
|
7535
|
+
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}`;
|
|
7219
7536
|
|
|
7220
7537
|
class SdSelect extends BaseDropdownEvent {
|
|
7221
7538
|
constructor(hostRef) {
|
|
@@ -7251,6 +7568,9 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7251
7568
|
searchRef;
|
|
7252
7569
|
optionRef;
|
|
7253
7570
|
dropdownRef;
|
|
7571
|
+
async open() {
|
|
7572
|
+
this.isOpen = true;
|
|
7573
|
+
}
|
|
7254
7574
|
valueChanged() {
|
|
7255
7575
|
const selectedOption = this.getSelectedOption();
|
|
7256
7576
|
this.sdChange?.emit({ value: selectedOption?.value || null, option: selectedOption || null });
|
|
@@ -7266,7 +7586,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7266
7586
|
if (this.searchable) {
|
|
7267
7587
|
const searchInput = await this.getNativeInputElement();
|
|
7268
7588
|
if (this.itemIndex === -1) {
|
|
7269
|
-
searchInput?.focus();
|
|
7589
|
+
searchInput?.focus({ preventScroll: true });
|
|
7270
7590
|
return;
|
|
7271
7591
|
}
|
|
7272
7592
|
else if (searchInput?.matches(':focus')) {
|
|
@@ -7311,7 +7631,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7311
7631
|
const currentItem = optionElements?.[this.itemIndex];
|
|
7312
7632
|
if (this.searchable) {
|
|
7313
7633
|
const searchInput = await this.getNativeInputElement();
|
|
7314
|
-
searchInput?.focus();
|
|
7634
|
+
searchInput?.focus({ preventScroll: true });
|
|
7315
7635
|
}
|
|
7316
7636
|
if (!currentItem)
|
|
7317
7637
|
return;
|
|
@@ -7419,11 +7739,11 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7419
7739
|
'--select-width': this.width || '200px',
|
|
7420
7740
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7421
7741
|
};
|
|
7422
|
-
return (hAsync(Host, { key: '
|
|
7742
|
+
return (hAsync(Host, { key: 'ba065b311487ea934dc46736fd633d4d1a13f2e4', style: style }, hAsync("div", { key: '904d988d274e7827d5c969ba45643648ba0a61b3', class: {
|
|
7423
7743
|
'sd-select': true,
|
|
7424
7744
|
'sd-select--open': this.isOpen,
|
|
7425
7745
|
'sd-select--disabled': this.disabled,
|
|
7426
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
7746
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '66fe35a68fa18cf97b4db110572f86faefa59207', class: "sd-select__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7427
7747
|
}
|
|
7428
7748
|
renderLabel(label) {
|
|
7429
7749
|
if (!label)
|
|
@@ -7460,7 +7780,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7460
7780
|
"itemIndex": ["itemIndexChanged"],
|
|
7461
7781
|
"isOpen": ["isOpenChanged"]
|
|
7462
7782
|
}; }
|
|
7463
|
-
static get style() { return sdSelectCss; }
|
|
7783
|
+
static get style() { return sdSelectCss(); }
|
|
7464
7784
|
static get cmpMeta() { return {
|
|
7465
7785
|
"$flags$": 772,
|
|
7466
7786
|
"$tagName$": "sd-select",
|
|
@@ -7480,7 +7800,8 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7480
7800
|
"isOpen": [32],
|
|
7481
7801
|
"searchText": [32],
|
|
7482
7802
|
"itemIndex": [32],
|
|
7483
|
-
"isScrolled": [32]
|
|
7803
|
+
"isScrolled": [32],
|
|
7804
|
+
"open": [64]
|
|
7484
7805
|
},
|
|
7485
7806
|
"$listeners$": undefined,
|
|
7486
7807
|
"$lazyBundleId$": "-",
|
|
@@ -7488,7 +7809,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
7488
7809
|
}; }
|
|
7489
7810
|
}
|
|
7490
7811
|
|
|
7491
|
-
const sdSelectMultipleCss =
|
|
7812
|
+
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}`;
|
|
7492
7813
|
|
|
7493
7814
|
class SdSelectMultiple extends BaseDropdownEvent {
|
|
7494
7815
|
constructor(hostRef) {
|
|
@@ -7525,6 +7846,9 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7525
7846
|
searchRef;
|
|
7526
7847
|
optionRef;
|
|
7527
7848
|
dropdownRef;
|
|
7849
|
+
async open() {
|
|
7850
|
+
this.isOpen = true;
|
|
7851
|
+
}
|
|
7528
7852
|
valueChanged() {
|
|
7529
7853
|
this.sdChange?.emit(this.value);
|
|
7530
7854
|
}
|
|
@@ -7700,11 +8024,11 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7700
8024
|
'--select-width': this.width || '200px',
|
|
7701
8025
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7702
8026
|
};
|
|
7703
|
-
return (hAsync(Host, { key: '
|
|
8027
|
+
return (hAsync(Host, { key: '24d4287067a9706099a20c46abee2d25a8271c1c', style: style }, hAsync("div", { key: '8b6f63ea974841ded9607c592d2c866a32bdccdf', class: {
|
|
7704
8028
|
'sd-select-multiple': true,
|
|
7705
8029
|
'sd-select-multiple--open': this.isOpen,
|
|
7706
8030
|
'sd-select-multiple--disabled': this.disabled,
|
|
7707
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
8031
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '2d35e79a95e5cd2ec8b055ca4d7a38e70ac13936', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7708
8032
|
}
|
|
7709
8033
|
renderLabel(label) {
|
|
7710
8034
|
if (!label)
|
|
@@ -7741,7 +8065,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7741
8065
|
"itemIndex": ["itemIndexChanged"],
|
|
7742
8066
|
"isOpen": ["isOpenChanged"]
|
|
7743
8067
|
}; }
|
|
7744
|
-
static get style() { return sdSelectMultipleCss; }
|
|
8068
|
+
static get style() { return sdSelectMultipleCss(); }
|
|
7745
8069
|
static get cmpMeta() { return {
|
|
7746
8070
|
"$flags$": 772,
|
|
7747
8071
|
"$tagName$": "sd-select-multiple",
|
|
@@ -7762,7 +8086,8 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7762
8086
|
"isOpen": [32],
|
|
7763
8087
|
"searchText": [32],
|
|
7764
8088
|
"itemIndex": [32],
|
|
7765
|
-
"isScrolled": [32]
|
|
8089
|
+
"isScrolled": [32],
|
|
8090
|
+
"open": [64]
|
|
7766
8091
|
},
|
|
7767
8092
|
"$listeners$": undefined,
|
|
7768
8093
|
"$lazyBundleId$": "-",
|
|
@@ -7770,7 +8095,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7770
8095
|
}; }
|
|
7771
8096
|
}
|
|
7772
8097
|
|
|
7773
|
-
const sdSelectMultipleGroupCss =
|
|
8098
|
+
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}`;
|
|
7774
8099
|
|
|
7775
8100
|
class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
7776
8101
|
constructor(hostRef) {
|
|
@@ -7830,7 +8155,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
7830
8155
|
if (this.searchable) {
|
|
7831
8156
|
const searchInput = await this.getNativeInputElement();
|
|
7832
8157
|
if (this.itemIndex === -1) {
|
|
7833
|
-
searchInput?.focus();
|
|
8158
|
+
searchInput?.focus({ preventScroll: true });
|
|
7834
8159
|
return;
|
|
7835
8160
|
}
|
|
7836
8161
|
else if (searchInput?.matches(':focus')) {
|
|
@@ -7868,7 +8193,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
7868
8193
|
// 드롭다운이 열릴 때 검색 입력에 포커스
|
|
7869
8194
|
if (this.searchable) {
|
|
7870
8195
|
const searchInput = await this.getNativeInputElement();
|
|
7871
|
-
searchInput?.focus();
|
|
8196
|
+
searchInput?.focus({ preventScroll: true });
|
|
7872
8197
|
}
|
|
7873
8198
|
if (!currentItem)
|
|
7874
8199
|
return;
|
|
@@ -8112,11 +8437,11 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8112
8437
|
'--select-width': this.width || '200px',
|
|
8113
8438
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
8114
8439
|
};
|
|
8115
|
-
return (hAsync(Host, { key: '
|
|
8440
|
+
return (hAsync(Host, { key: 'efc8661d6cd2e043b5e43e0872de3a9bff6d57a6', style: style }, hAsync("div", { key: 'e9f7615f75cb28974dececc8e847e868aef8210c', class: {
|
|
8116
8441
|
'sd-select-multiple-group': true,
|
|
8117
8442
|
'sd-select-multiple-group--open': this.isOpen,
|
|
8118
8443
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
8119
|
-
}, style: this.containerStyle, ref: el => (this.selectRef = el) }, this.renderLabel(this.label, this.labelStyle), hAsync("div", { key: '
|
|
8444
|
+
}, 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()))));
|
|
8120
8445
|
}
|
|
8121
8446
|
renderLabel(label, labelStyle) {
|
|
8122
8447
|
if (!label)
|
|
@@ -8166,7 +8491,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8166
8491
|
"itemIndex": ["itemIndexChanged"],
|
|
8167
8492
|
"isOpen": ["isOpenChanged"]
|
|
8168
8493
|
}; }
|
|
8169
|
-
static get style() { return sdSelectMultipleGroupCss; }
|
|
8494
|
+
static get style() { return sdSelectMultipleGroupCss(); }
|
|
8170
8495
|
static get cmpMeta() { return {
|
|
8171
8496
|
"$flags$": 772,
|
|
8172
8497
|
"$tagName$": "sd-select-multiple-group",
|
|
@@ -8203,7 +8528,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
8203
8528
|
}; }
|
|
8204
8529
|
}
|
|
8205
8530
|
|
|
8206
|
-
const sdSelectOptionCss =
|
|
8531
|
+
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}`;
|
|
8207
8532
|
|
|
8208
8533
|
class SdSelectOption {
|
|
8209
8534
|
constructor(hostRef) {
|
|
@@ -8234,7 +8559,7 @@ class SdSelectOption {
|
|
|
8234
8559
|
}
|
|
8235
8560
|
};
|
|
8236
8561
|
render() {
|
|
8237
|
-
return (hAsync(Host, { key: '
|
|
8562
|
+
return (hAsync(Host, { key: 'd3235f4b0314c15a8d280377d88db6bf53f7eb79' }, hAsync("div", { key: '033fe384d67211a387d609a7b462330ee86c67a2', class: {
|
|
8238
8563
|
'sd-select__option': true,
|
|
8239
8564
|
'sd-select__option--selected': this.isSelected,
|
|
8240
8565
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -8253,7 +8578,7 @@ class SdSelectOption {
|
|
|
8253
8578
|
this.handleClick(e);
|
|
8254
8579
|
} }), hAsync("span", { class: "sd-select__option-label" }, this.option.label))) : (this.option.label))));
|
|
8255
8580
|
}
|
|
8256
|
-
static get style() { return sdSelectOptionCss; }
|
|
8581
|
+
static get style() { return sdSelectOptionCss(); }
|
|
8257
8582
|
static get cmpMeta() { return {
|
|
8258
8583
|
"$flags$": 768,
|
|
8259
8584
|
"$tagName$": "sd-select-option",
|
|
@@ -8274,7 +8599,7 @@ class SdSelectOption {
|
|
|
8274
8599
|
}; }
|
|
8275
8600
|
}
|
|
8276
8601
|
|
|
8277
|
-
const sdSelectOptionGroupCss =
|
|
8602
|
+
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}`;
|
|
8278
8603
|
|
|
8279
8604
|
class SdSelectOptionGroup {
|
|
8280
8605
|
constructor(hostRef) {
|
|
@@ -8320,7 +8645,7 @@ class SdSelectOptionGroup {
|
|
|
8320
8645
|
}
|
|
8321
8646
|
};
|
|
8322
8647
|
render() {
|
|
8323
|
-
return (hAsync("div", { key: '
|
|
8648
|
+
return (hAsync("div", { key: 'db08c9cdb5179cccfa040fa03e06f286231bc83f', class: {
|
|
8324
8649
|
'sd-select__option-group': true,
|
|
8325
8650
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
8326
8651
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -8329,12 +8654,12 @@ class SdSelectOptionGroup {
|
|
|
8329
8654
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
8330
8655
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
8331
8656
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
8332
|
-
}, 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: '
|
|
8657
|
+
}, 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 => {
|
|
8333
8658
|
e.preventDefault();
|
|
8334
8659
|
this.handleClick(this.option, this.isSelected, e);
|
|
8335
|
-
} })), hAsync("span", { key: '
|
|
8660
|
+
} })), 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})`)))));
|
|
8336
8661
|
}
|
|
8337
|
-
static get style() { return sdSelectOptionGroupCss; }
|
|
8662
|
+
static get style() { return sdSelectOptionGroupCss(); }
|
|
8338
8663
|
static get cmpMeta() { return {
|
|
8339
8664
|
"$flags$": 768,
|
|
8340
8665
|
"$tagName$": "sd-select-option-group",
|
|
@@ -8357,7 +8682,7 @@ class SdSelectOptionGroup {
|
|
|
8357
8682
|
}; }
|
|
8358
8683
|
}
|
|
8359
8684
|
|
|
8360
|
-
const sdTableCss =
|
|
8685
|
+
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%)}`;
|
|
8361
8686
|
|
|
8362
8687
|
let SdTable$1 = class SdTable {
|
|
8363
8688
|
constructor(hostRef) {
|
|
@@ -8551,10 +8876,10 @@ let SdTable$1 = class SdTable {
|
|
|
8551
8876
|
}, 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) }))))))));
|
|
8552
8877
|
}
|
|
8553
8878
|
render() {
|
|
8554
|
-
return (hAsync(Host, { key: '
|
|
8879
|
+
return (hAsync(Host, { key: 'e87739da29d845e6125f0902d4ed6b5d026a6396' }, hAsync("div", { key: '88cdda9d8ea755451d1d4203e1c99e6299e5976f', class: "sd-table__wrapper", style: {
|
|
8555
8880
|
'--table-width': this.width,
|
|
8556
8881
|
'--table-height': this.height,
|
|
8557
|
-
} }, hAsync("div", { key: '
|
|
8882
|
+
} }, 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) => {
|
|
8558
8883
|
if (!this.useInternalPagination) {
|
|
8559
8884
|
this.sdPageChange.emit(e.detail);
|
|
8560
8885
|
}
|
|
@@ -8562,7 +8887,7 @@ let SdTable$1 = class SdTable {
|
|
|
8562
8887
|
this.currentPage = e.detail;
|
|
8563
8888
|
this.sdPageChange.emit(this.currentPage);
|
|
8564
8889
|
}
|
|
8565
|
-
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '
|
|
8890
|
+
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '85ea699d7acb1ad4eccc6c97ca668a60c6f606e7', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
8566
8891
|
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
8567
8892
|
if (!this.useInternalPagination) {
|
|
8568
8893
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
@@ -8590,7 +8915,7 @@ let SdTable$1 = class SdTable {
|
|
|
8590
8915
|
"selected": ["handleSelectedChange"],
|
|
8591
8916
|
"pagination": ["handlePaginationChange"]
|
|
8592
8917
|
}; }
|
|
8593
|
-
static get style() { return sdTableCss; }
|
|
8918
|
+
static get style() { return sdTableCss(); }
|
|
8594
8919
|
static get cmpMeta() { return {
|
|
8595
8920
|
"$flags$": 772,
|
|
8596
8921
|
"$tagName$": "sd-table",
|
|
@@ -8625,7 +8950,7 @@ let SdTable$1 = class SdTable {
|
|
|
8625
8950
|
}; }
|
|
8626
8951
|
};
|
|
8627
8952
|
|
|
8628
|
-
const sdTableBackupCss =
|
|
8953
|
+
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%}}`;
|
|
8629
8954
|
|
|
8630
8955
|
class SdTable {
|
|
8631
8956
|
constructor(hostRef) {
|
|
@@ -9268,16 +9593,16 @@ class SdTable {
|
|
|
9268
9593
|
}, "aria-hidden": "true" }, hAsync("div", { class: "sd-table__skeleton-cell" })));
|
|
9269
9594
|
}
|
|
9270
9595
|
render() {
|
|
9271
|
-
return (hAsync(Host, { key: '
|
|
9596
|
+
return (hAsync(Host, { key: '5d04a8b7cf9dbc6cfb9dc4d6497f4eb6190caca1' }, hAsync("div", { key: 'da26d320dbd4542b226434e355c8ee947b4e1cf6', class: "sd-table__wrapper", style: {
|
|
9272
9597
|
'--table-width': this.width,
|
|
9273
9598
|
'--table-height': this.height,
|
|
9274
|
-
} }, hAsync("div", { key: '
|
|
9599
|
+
} }, hAsync("div", { key: 'f3fe16bd185e08f2cbba94199bb9d55dc854b085', class: "sd-table__container", style: {
|
|
9275
9600
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
9276
|
-
} }, hAsync("div", { key: '
|
|
9601
|
+
} }, hAsync("div", { key: '5e0976df3206aca9f33e54b85bda479110397621', class: {
|
|
9277
9602
|
'sd-table__middle': true,
|
|
9278
9603
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
9279
9604
|
'sd-table__middle--loading': this.isLoading,
|
|
9280
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
9605
|
+
} }, 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) })))))));
|
|
9281
9606
|
}
|
|
9282
9607
|
static get watchers() { return {
|
|
9283
9608
|
"columns": ["handleColumnsChange"],
|
|
@@ -9286,7 +9611,7 @@ class SdTable {
|
|
|
9286
9611
|
"selected": ["handleSelectedChange"],
|
|
9287
9612
|
"pagination": ["handlePaginationChange"]
|
|
9288
9613
|
}; }
|
|
9289
|
-
static get style() { return sdTableBackupCss; }
|
|
9614
|
+
static get style() { return sdTableBackupCss(); }
|
|
9290
9615
|
static get cmpMeta() { return {
|
|
9291
9616
|
"$flags$": 772,
|
|
9292
9617
|
"$tagName$": "sd-table-backup",
|
|
@@ -9332,30 +9657,106 @@ class SdTable {
|
|
|
9332
9657
|
}; }
|
|
9333
9658
|
}
|
|
9334
9659
|
|
|
9335
|
-
const
|
|
9660
|
+
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}`;
|
|
9336
9661
|
|
|
9337
|
-
|
|
9338
|
-
grey: 'bg-grey_20 text-grey_70',
|
|
9339
|
-
red: 'bg-red_15 text-red_70',
|
|
9340
|
-
orange: 'bg-orange_10 text-orange_65',
|
|
9341
|
-
yellow: 'bg-yellow_10 text-yellow_60',
|
|
9342
|
-
green: 'bg-green_15 text-green_70',
|
|
9343
|
-
blue: 'bg-brilliantblue_20 text-brilliantblue_75',
|
|
9344
|
-
darkblue: 'bg-oceanblue_15 text-oceanblue_70',
|
|
9345
|
-
indigo: 'bg-brilliantblue_10 text-brilliantblue_85',
|
|
9346
|
-
};
|
|
9347
|
-
class SdTag {
|
|
9662
|
+
class SdTabs {
|
|
9348
9663
|
constructor(hostRef) {
|
|
9349
9664
|
registerInstance(this, hostRef);
|
|
9665
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
9350
9666
|
}
|
|
9351
|
-
|
|
9667
|
+
value;
|
|
9668
|
+
tabs = [];
|
|
9352
9669
|
size = 'md';
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9670
|
+
isSub = false;
|
|
9671
|
+
selectedValue;
|
|
9672
|
+
sdChange;
|
|
9673
|
+
componentWillLoad() {
|
|
9674
|
+
if (this.value !== undefined && this.value !== null) {
|
|
9675
|
+
this.selectedValue = this.value;
|
|
9676
|
+
}
|
|
9677
|
+
}
|
|
9678
|
+
valueChanged(newValue) {
|
|
9679
|
+
this.selectedValue = newValue;
|
|
9680
|
+
}
|
|
9681
|
+
handleTabClick = (tabValue) => {
|
|
9682
|
+
this.selectedValue = tabValue;
|
|
9683
|
+
this.value = tabValue;
|
|
9684
|
+
this.sdChange.emit(tabValue);
|
|
9685
|
+
};
|
|
9686
|
+
isTabSelected(tab) {
|
|
9687
|
+
return this.selectedValue === tab.value;
|
|
9688
|
+
}
|
|
9689
|
+
getTabClasses(tab) {
|
|
9690
|
+
const classes = [
|
|
9691
|
+
'sd-tabs__tab',
|
|
9692
|
+
this.isTabSelected(tab) ? 'sd-tabs__tab--selected' : 'sd-tabs__tab--unselected',
|
|
9693
|
+
];
|
|
9694
|
+
return classes.join(' ');
|
|
9695
|
+
}
|
|
9696
|
+
getContainerClasses() {
|
|
9697
|
+
const classes = ['sd-tabs', `sd-tabs--${this.size}`];
|
|
9698
|
+
if (this.isSub) {
|
|
9699
|
+
classes.push('sd-tabs--sub');
|
|
9700
|
+
}
|
|
9701
|
+
return classes.join(' ');
|
|
9702
|
+
}
|
|
9703
|
+
getBadgeColors(tab) {
|
|
9704
|
+
if (this.isTabSelected(tab)) {
|
|
9705
|
+
return { bgColor: '#E6F1FF', textColor: '#0075FF' };
|
|
9706
|
+
}
|
|
9707
|
+
return { bgColor: '#E5E5E5', textColor: '#737373' };
|
|
9708
|
+
}
|
|
9709
|
+
render() {
|
|
9710
|
+
return (hAsync("div", { key: '749c892c45eccc71e2faad842be4dfd311aa2eed', class: this.getContainerClasses(), role: "tablist" }, this.tabs.map((tab, index) => {
|
|
9711
|
+
const isSelected = this.isTabSelected(tab);
|
|
9712
|
+
const badgeColors = this.getBadgeColors(tab);
|
|
9713
|
+
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 }))));
|
|
9714
|
+
})));
|
|
9715
|
+
}
|
|
9716
|
+
static get watchers() { return {
|
|
9717
|
+
"value": ["valueChanged"]
|
|
9718
|
+
}; }
|
|
9719
|
+
static get style() { return sdTabsCss(); }
|
|
9720
|
+
static get cmpMeta() { return {
|
|
9721
|
+
"$flags$": 768,
|
|
9722
|
+
"$tagName$": "sd-tabs",
|
|
9723
|
+
"$members$": {
|
|
9724
|
+
"value": [1537],
|
|
9725
|
+
"tabs": [1040],
|
|
9726
|
+
"size": [1],
|
|
9727
|
+
"isSub": [4, "is-sub"],
|
|
9728
|
+
"selectedValue": [32]
|
|
9729
|
+
},
|
|
9730
|
+
"$listeners$": undefined,
|
|
9731
|
+
"$lazyBundleId$": "-",
|
|
9732
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
9733
|
+
}; }
|
|
9734
|
+
}
|
|
9735
|
+
|
|
9736
|
+
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}`;
|
|
9737
|
+
|
|
9738
|
+
const TAG_COLORS = {
|
|
9739
|
+
grey: 'bg-grey_20 text-grey_70',
|
|
9740
|
+
red: 'bg-red_15 text-red_70',
|
|
9741
|
+
orange: 'bg-orange_10 text-orange_65',
|
|
9742
|
+
yellow: 'bg-yellow_10 text-yellow_60',
|
|
9743
|
+
green: 'bg-green_15 text-green_70',
|
|
9744
|
+
blue: 'bg-brilliantblue_20 text-brilliantblue_75',
|
|
9745
|
+
darkblue: 'bg-oceanblue_15 text-oceanblue_70',
|
|
9746
|
+
indigo: 'bg-brilliantblue_10 text-brilliantblue_85',
|
|
9747
|
+
};
|
|
9748
|
+
class SdTag {
|
|
9749
|
+
constructor(hostRef) {
|
|
9750
|
+
registerInstance(this, hostRef);
|
|
9751
|
+
}
|
|
9752
|
+
get el() { return getElement(this); }
|
|
9753
|
+
size = 'md';
|
|
9754
|
+
color = 'grey';
|
|
9755
|
+
rounded = false;
|
|
9756
|
+
label = '';
|
|
9757
|
+
bgColor;
|
|
9758
|
+
textColor;
|
|
9759
|
+
getTagClasses() {
|
|
9359
9760
|
const classes = ['sd-tag', `sd-tag--${this.size}`];
|
|
9360
9761
|
if (this.rounded) {
|
|
9361
9762
|
classes.push('sd-tag--rounded');
|
|
@@ -9375,12 +9776,12 @@ class SdTag {
|
|
|
9375
9776
|
}
|
|
9376
9777
|
render() {
|
|
9377
9778
|
const tagClasses = this.getTagClasses();
|
|
9378
|
-
return (hAsync("span", { key: '
|
|
9779
|
+
return (hAsync("span", { key: '6f3353059d6a1516dd11e23f6347f52f514020e4', class: tagClasses, style: {
|
|
9379
9780
|
'--tag-bg-color': this.bgColor,
|
|
9380
9781
|
'--tag-text-color': this.textColor,
|
|
9381
9782
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
9382
9783
|
}
|
|
9383
|
-
static get style() { return sdTagCss; }
|
|
9784
|
+
static get style() { return sdTagCss(); }
|
|
9384
9785
|
static get cmpMeta() { return {
|
|
9385
9786
|
"$flags$": 777,
|
|
9386
9787
|
"$tagName$": "sd-tag",
|
|
@@ -9398,16 +9799,16 @@ class SdTag {
|
|
|
9398
9799
|
}; }
|
|
9399
9800
|
}
|
|
9400
9801
|
|
|
9401
|
-
const sdTbodyCss =
|
|
9802
|
+
const sdTbodyCss = () => `sd-tbody{display:table-row-group}`;
|
|
9402
9803
|
|
|
9403
9804
|
class SdTbody {
|
|
9404
9805
|
constructor(hostRef) {
|
|
9405
9806
|
registerInstance(this, hostRef);
|
|
9406
9807
|
}
|
|
9407
9808
|
render() {
|
|
9408
|
-
return (hAsync(Host, { key: '
|
|
9809
|
+
return (hAsync(Host, { key: '96bedf612efa56d790df7070e2641f6769da81a9' }, hAsync("slot", { key: '9980c55cf76b1600034d8dcd60249b392c0c50f2' })));
|
|
9409
9810
|
}
|
|
9410
|
-
static get style() { return sdTbodyCss; }
|
|
9811
|
+
static get style() { return sdTbodyCss(); }
|
|
9411
9812
|
static get cmpMeta() { return {
|
|
9412
9813
|
"$flags$": 260,
|
|
9413
9814
|
"$tagName$": "sd-tbody",
|
|
@@ -9418,7 +9819,7 @@ class SdTbody {
|
|
|
9418
9819
|
}; }
|
|
9419
9820
|
}
|
|
9420
9821
|
|
|
9421
|
-
const sdTdCss =
|
|
9822
|
+
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}`;
|
|
9422
9823
|
|
|
9423
9824
|
class SdTd {
|
|
9424
9825
|
constructor(hostRef) {
|
|
@@ -9429,13 +9830,13 @@ class SdTd {
|
|
|
9429
9830
|
tdStyle;
|
|
9430
9831
|
tdClass;
|
|
9431
9832
|
render() {
|
|
9432
|
-
return (hAsync(Host, { key: '
|
|
9833
|
+
return (hAsync(Host, { key: '182bd00cbbb22b4f3613e973d2999421a3f5f2cd', role: "cell", class: {
|
|
9433
9834
|
'sd-td': true,
|
|
9434
9835
|
[`sd-td--${this.align}`]: true,
|
|
9435
9836
|
[this.tdClass || '']: Boolean(this.tdClass),
|
|
9436
|
-
}, style: this.tdStyle }, hAsync("slot", { key: '
|
|
9837
|
+
}, style: this.tdStyle }, hAsync("slot", { key: 'fff1a74106822c8092fa57ba785f6ab5be96edcd' })));
|
|
9437
9838
|
}
|
|
9438
|
-
static get style() { return sdTdCss; }
|
|
9839
|
+
static get style() { return sdTdCss(); }
|
|
9439
9840
|
static get cmpMeta() { return {
|
|
9440
9841
|
"$flags$": 772,
|
|
9441
9842
|
"$tagName$": "sd-td",
|
|
@@ -9451,16 +9852,16 @@ class SdTd {
|
|
|
9451
9852
|
}; }
|
|
9452
9853
|
}
|
|
9453
9854
|
|
|
9454
|
-
const sdThCss =
|
|
9855
|
+
const sdThCss = () => `sd-th{display:table-cell;padding:12px;font-weight:bold;text-align:left;border-bottom:2px solid #ddd;background-color:#f1f1f1}`;
|
|
9455
9856
|
|
|
9456
9857
|
class SdTh {
|
|
9457
9858
|
constructor(hostRef) {
|
|
9458
9859
|
registerInstance(this, hostRef);
|
|
9459
9860
|
}
|
|
9460
9861
|
render() {
|
|
9461
|
-
return (hAsync(Host, { key: '
|
|
9862
|
+
return (hAsync(Host, { key: 'cbd2372809ca102893f62b3b4e2d51342cc4c52f', role: "columnheader" }, hAsync("slot", { key: 'c51c2635013c8d405bf3d95d46d2b99bc52c3326' })));
|
|
9462
9863
|
}
|
|
9463
|
-
static get style() { return sdThCss; }
|
|
9864
|
+
static get style() { return sdThCss(); }
|
|
9464
9865
|
static get cmpMeta() { return {
|
|
9465
9866
|
"$flags$": 260,
|
|
9466
9867
|
"$tagName$": "sd-th",
|
|
@@ -9471,7 +9872,78 @@ class SdTh {
|
|
|
9471
9872
|
}; }
|
|
9472
9873
|
}
|
|
9473
9874
|
|
|
9474
|
-
const
|
|
9875
|
+
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}`;
|
|
9876
|
+
|
|
9877
|
+
class SdToastMessage {
|
|
9878
|
+
constructor(hostRef) {
|
|
9879
|
+
registerInstance(this, hostRef);
|
|
9880
|
+
this.sdClose = createEvent(this, "sdClose");
|
|
9881
|
+
this.sdButtonClick = createEvent(this, "sdButtonClick");
|
|
9882
|
+
}
|
|
9883
|
+
icon;
|
|
9884
|
+
message;
|
|
9885
|
+
link;
|
|
9886
|
+
linkLabel;
|
|
9887
|
+
buttonLabel;
|
|
9888
|
+
close = false;
|
|
9889
|
+
type = 'basicDark';
|
|
9890
|
+
sdClose;
|
|
9891
|
+
sdButtonClick;
|
|
9892
|
+
isVisible = true;
|
|
9893
|
+
static COLOR_OF_TYPE = {
|
|
9894
|
+
basicLight: { background: 'white', text: 'grey_95' },
|
|
9895
|
+
basicDark: { background: 'steelblue_90', text: 'white' },
|
|
9896
|
+
error: { background: 'red_70', text: 'white' },
|
|
9897
|
+
caution: { background: 'yellow_45', text: 'grey_90' },
|
|
9898
|
+
complete: { background: 'green_75', text: 'white' },
|
|
9899
|
+
progress: { background: 'brilliantblue_80', text: 'white' },
|
|
9900
|
+
};
|
|
9901
|
+
handleClose = () => {
|
|
9902
|
+
this.isVisible = false;
|
|
9903
|
+
this.sdClose.emit();
|
|
9904
|
+
};
|
|
9905
|
+
handleButtonClick = () => {
|
|
9906
|
+
this.sdButtonClick.emit();
|
|
9907
|
+
};
|
|
9908
|
+
getContainerClasses() {
|
|
9909
|
+
const classes = ['sd-toast-message', `sd-toast-message--${this.type}`];
|
|
9910
|
+
if (!this.isVisible) {
|
|
9911
|
+
classes.push('sd-toast-message--hidden');
|
|
9912
|
+
}
|
|
9913
|
+
return classes.join(' ');
|
|
9914
|
+
}
|
|
9915
|
+
render() {
|
|
9916
|
+
const colorTokens = SdToastMessage.COLOR_OF_TYPE[this.type];
|
|
9917
|
+
const colors = {
|
|
9918
|
+
background: resolveColor(colorTokens.background),
|
|
9919
|
+
text: resolveColor(colorTokens.text),
|
|
9920
|
+
};
|
|
9921
|
+
return (hAsync(Host, { key: '4d342822195d44b49e5976e8d5e66fc7a58301b9', style: {
|
|
9922
|
+
'--sd-toast-bg': colors.background,
|
|
9923
|
+
'--sd-toast-text': colors.text,
|
|
9924
|
+
} }, 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 }))))));
|
|
9925
|
+
}
|
|
9926
|
+
static get style() { return sdToastMessageCss(); }
|
|
9927
|
+
static get cmpMeta() { return {
|
|
9928
|
+
"$flags$": 770,
|
|
9929
|
+
"$tagName$": "sd-toast-message",
|
|
9930
|
+
"$members$": {
|
|
9931
|
+
"icon": [1],
|
|
9932
|
+
"message": [1],
|
|
9933
|
+
"link": [1],
|
|
9934
|
+
"linkLabel": [1, "link-label"],
|
|
9935
|
+
"buttonLabel": [1, "button-label"],
|
|
9936
|
+
"close": [4],
|
|
9937
|
+
"type": [1],
|
|
9938
|
+
"isVisible": [32]
|
|
9939
|
+
},
|
|
9940
|
+
"$listeners$": undefined,
|
|
9941
|
+
"$lazyBundleId$": "-",
|
|
9942
|
+
"$attrsToReflect$": []
|
|
9943
|
+
}; }
|
|
9944
|
+
}
|
|
9945
|
+
|
|
9946
|
+
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}`;
|
|
9475
9947
|
|
|
9476
9948
|
class SdToggle {
|
|
9477
9949
|
constructor(hostRef) {
|
|
@@ -9507,9 +9979,9 @@ class SdToggle {
|
|
|
9507
9979
|
this.sdChange.emit(newValue);
|
|
9508
9980
|
};
|
|
9509
9981
|
render() {
|
|
9510
|
-
return (hAsync("label", { key: '
|
|
9982
|
+
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" }))));
|
|
9511
9983
|
}
|
|
9512
|
-
static get style() { return sdToggleCss; }
|
|
9984
|
+
static get style() { return sdToggleCss(); }
|
|
9513
9985
|
static get cmpMeta() { return {
|
|
9514
9986
|
"$flags$": 768,
|
|
9515
9987
|
"$tagName$": "sd-toggle",
|
|
@@ -9525,7 +9997,64 @@ class SdToggle {
|
|
|
9525
9997
|
}; }
|
|
9526
9998
|
}
|
|
9527
9999
|
|
|
9528
|
-
const
|
|
10000
|
+
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}`;
|
|
10001
|
+
|
|
10002
|
+
class SdToggleButton {
|
|
10003
|
+
constructor(hostRef) {
|
|
10004
|
+
registerInstance(this, hostRef);
|
|
10005
|
+
this.sdChange = createEvent(this, "sdChange");
|
|
10006
|
+
}
|
|
10007
|
+
value = false;
|
|
10008
|
+
label = '';
|
|
10009
|
+
disabled = false;
|
|
10010
|
+
isActive = false;
|
|
10011
|
+
sdChange;
|
|
10012
|
+
componentWillLoad() {
|
|
10013
|
+
this.updateActiveState(this.value);
|
|
10014
|
+
}
|
|
10015
|
+
componentWillRender() {
|
|
10016
|
+
this.updateActiveState(this.value);
|
|
10017
|
+
}
|
|
10018
|
+
updateActiveState(value) {
|
|
10019
|
+
this.isActive = value;
|
|
10020
|
+
}
|
|
10021
|
+
get buttonClasses() {
|
|
10022
|
+
const classes = ['sd-toggle-button'];
|
|
10023
|
+
if (this.isActive) {
|
|
10024
|
+
classes.push('sd-toggle-button--active');
|
|
10025
|
+
}
|
|
10026
|
+
if (this.disabled) {
|
|
10027
|
+
classes.push('sd-toggle-button--disabled');
|
|
10028
|
+
}
|
|
10029
|
+
return classes.join(' ');
|
|
10030
|
+
}
|
|
10031
|
+
handleChange = () => {
|
|
10032
|
+
if (this.disabled)
|
|
10033
|
+
return;
|
|
10034
|
+
const newValue = !this.value;
|
|
10035
|
+
this.value = newValue;
|
|
10036
|
+
this.sdChange.emit(newValue);
|
|
10037
|
+
};
|
|
10038
|
+
render() {
|
|
10039
|
+
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 })));
|
|
10040
|
+
}
|
|
10041
|
+
static get style() { return sdToggleButtonCss(); }
|
|
10042
|
+
static get cmpMeta() { return {
|
|
10043
|
+
"$flags$": 768,
|
|
10044
|
+
"$tagName$": "sd-toggle-button",
|
|
10045
|
+
"$members$": {
|
|
10046
|
+
"value": [1540],
|
|
10047
|
+
"label": [1],
|
|
10048
|
+
"disabled": [4],
|
|
10049
|
+
"isActive": [32]
|
|
10050
|
+
},
|
|
10051
|
+
"$listeners$": undefined,
|
|
10052
|
+
"$lazyBundleId$": "-",
|
|
10053
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
10054
|
+
}; }
|
|
10055
|
+
}
|
|
10056
|
+
|
|
10057
|
+
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}`;
|
|
9529
10058
|
|
|
9530
10059
|
class SdTooltip {
|
|
9531
10060
|
constructor(hostRef) {
|
|
@@ -9573,22 +10102,22 @@ class SdTooltip {
|
|
|
9573
10102
|
: {
|
|
9574
10103
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
9575
10104
|
};
|
|
9576
|
-
return (hAsync(Fragment, { key: '
|
|
10105
|
+
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: {
|
|
9577
10106
|
'sd-tooltip-menu': true,
|
|
9578
10107
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
9579
10108
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
9580
10109
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
9581
10110
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9582
10111
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
9583
|
-
} }, hAsync("i", { key: '
|
|
10112
|
+
} }, hAsync("i", { key: '176b79ce7db54479f2690aca9ae98252e1dfacd4', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'aa1f0d7da5135713d1d51ed2852210895d707931', class: {
|
|
9584
10113
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
9585
|
-
} })), hAsync("div", { key: '
|
|
10114
|
+
} })), hAsync("div", { key: '147d42745d18180e92a81ed60404697afd6ea1e5', class: "sd-tooltip-menu__content", ref: el => {
|
|
9586
10115
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
9587
10116
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
9588
10117
|
}
|
|
9589
|
-
} }, !this.slotContent && hAsync("span", { key: '
|
|
10118
|
+
} }, !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" })))))))));
|
|
9590
10119
|
}
|
|
9591
|
-
static get style() { return sdTooltipCss; }
|
|
10120
|
+
static get style() { return sdTooltipCss(); }
|
|
9592
10121
|
static get cmpMeta() { return {
|
|
9593
10122
|
"$flags$": 768,
|
|
9594
10123
|
"$tagName$": "sd-tooltip",
|
|
@@ -9762,7 +10291,7 @@ class SdTooltipPortal {
|
|
|
9762
10291
|
this.sdClose.emit();
|
|
9763
10292
|
}
|
|
9764
10293
|
render() {
|
|
9765
|
-
return hAsync("slot", { key: '
|
|
10294
|
+
return hAsync("slot", { key: 'e6c37c753808b41beeeefa5f04bdf543a48eaa05' });
|
|
9766
10295
|
}
|
|
9767
10296
|
static get cmpMeta() { return {
|
|
9768
10297
|
"$flags$": 777,
|
|
@@ -9781,16 +10310,16 @@ class SdTooltipPortal {
|
|
|
9781
10310
|
}; }
|
|
9782
10311
|
}
|
|
9783
10312
|
|
|
9784
|
-
const sdTrCss =
|
|
10313
|
+
const sdTrCss = () => `sd-tr{display:table-row}`;
|
|
9785
10314
|
|
|
9786
10315
|
class SdTr {
|
|
9787
10316
|
constructor(hostRef) {
|
|
9788
10317
|
registerInstance(this, hostRef);
|
|
9789
10318
|
}
|
|
9790
10319
|
render() {
|
|
9791
|
-
return (hAsync(Host, { key: '
|
|
10320
|
+
return (hAsync(Host, { key: '228bb6d6b5225bd035cce96cd817beb9e2734ab4', role: "row" }, hAsync("slot", { key: '8906dfdeb89afb1028a30a5b16b034f6c2ba67b9' })));
|
|
9792
10321
|
}
|
|
9793
|
-
static get style() { return sdTrCss; }
|
|
10322
|
+
static get style() { return sdTrCss(); }
|
|
9794
10323
|
static get cmpMeta() { return {
|
|
9795
10324
|
"$flags$": 260,
|
|
9796
10325
|
"$tagName$": "sd-tr",
|
|
@@ -9809,6 +10338,7 @@ registerComponents([
|
|
|
9809
10338
|
SdDateBox,
|
|
9810
10339
|
SdDatePicker,
|
|
9811
10340
|
SdDateRangePicker,
|
|
10341
|
+
SdFilePicker,
|
|
9812
10342
|
SdGuide,
|
|
9813
10343
|
SdIcon,
|
|
9814
10344
|
SdInput,
|
|
@@ -9818,6 +10348,7 @@ registerComponents([
|
|
|
9818
10348
|
SdPopover,
|
|
9819
10349
|
SdPortal,
|
|
9820
10350
|
SdProgress,
|
|
10351
|
+
SdRadioButtonGroup,
|
|
9821
10352
|
SdRadioGroup,
|
|
9822
10353
|
SdSelect,
|
|
9823
10354
|
SdSelectMultiple,
|
|
@@ -9826,11 +10357,14 @@ registerComponents([
|
|
|
9826
10357
|
SdSelectOptionGroup,
|
|
9827
10358
|
SdTable$1,
|
|
9828
10359
|
SdTable,
|
|
10360
|
+
SdTabs,
|
|
9829
10361
|
SdTag,
|
|
9830
10362
|
SdTbody,
|
|
9831
10363
|
SdTd,
|
|
9832
10364
|
SdTh,
|
|
10365
|
+
SdToastMessage,
|
|
9833
10366
|
SdToggle,
|
|
10367
|
+
SdToggleButton,
|
|
9834
10368
|
SdTooltip,
|
|
9835
10369
|
SdTooltipPortal,
|
|
9836
10370
|
SdTr,
|
|
@@ -9846,100 +10380,50 @@ exports.hydrateApp = hydrateApp;
|
|
|
9846
10380
|
hydrateAppClosure($stencilWindow);
|
|
9847
10381
|
}
|
|
9848
10382
|
|
|
9849
|
-
// src/app-data/index.ts
|
|
9850
|
-
var BUILD = {
|
|
9851
|
-
allRenderFn: false,
|
|
9852
|
-
element: true,
|
|
9853
|
-
event: true,
|
|
9854
|
-
hasRenderFn: true,
|
|
9855
|
-
hostListener: true,
|
|
9856
|
-
hostListenerTargetWindow: true,
|
|
9857
|
-
hostListenerTargetDocument: true,
|
|
9858
|
-
hostListenerTargetBody: true,
|
|
9859
|
-
hostListenerTargetParent: false,
|
|
9860
|
-
hostListenerTarget: true,
|
|
9861
|
-
member: true,
|
|
9862
|
-
method: true,
|
|
9863
|
-
mode: true,
|
|
9864
|
-
observeAttribute: true,
|
|
9865
|
-
prop: true,
|
|
9866
|
-
propMutable: true,
|
|
9867
|
-
reflect: true,
|
|
9868
|
-
scoped: true,
|
|
9869
|
-
shadowDom: true,
|
|
9870
|
-
slot: true,
|
|
9871
|
-
cssAnnotations: true,
|
|
9872
|
-
state: true,
|
|
9873
|
-
style: true,
|
|
9874
|
-
formAssociated: false,
|
|
9875
|
-
svg: true,
|
|
9876
|
-
updatable: true,
|
|
9877
|
-
vdomAttribute: true,
|
|
9878
|
-
vdomXlink: true,
|
|
9879
|
-
vdomClass: true,
|
|
9880
|
-
vdomFunctional: true,
|
|
9881
|
-
vdomKey: true,
|
|
9882
|
-
vdomListener: true,
|
|
9883
|
-
vdomRef: true,
|
|
9884
|
-
vdomPropOrAttr: true,
|
|
9885
|
-
vdomRender: true,
|
|
9886
|
-
vdomStyle: true,
|
|
9887
|
-
vdomText: true,
|
|
9888
|
-
propChangeCallback: true,
|
|
9889
|
-
taskQueue: true,
|
|
9890
|
-
hotModuleReplacement: false,
|
|
9891
|
-
isDebug: false,
|
|
9892
|
-
isDev: false,
|
|
9893
|
-
isTesting: false,
|
|
9894
|
-
hydrateServerSide: false,
|
|
9895
|
-
hydrateClientSide: false,
|
|
9896
|
-
lifecycleDOMEvents: false,
|
|
9897
|
-
lazyLoad: false,
|
|
9898
|
-
profile: false,
|
|
9899
|
-
slotRelocation: true,
|
|
9900
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9901
|
-
appendChildSlotFix: false,
|
|
9902
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9903
|
-
cloneNodeFix: false,
|
|
9904
|
-
hydratedAttribute: false,
|
|
9905
|
-
hydratedClass: true,
|
|
9906
|
-
// TODO(STENCIL-1305): remove this option
|
|
9907
|
-
scriptDataOpts: false,
|
|
9908
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9909
|
-
scopedSlotTextContentFix: false,
|
|
9910
|
-
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
9911
|
-
shadowDomShim: false,
|
|
9912
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9913
|
-
slotChildNodesFix: false,
|
|
9914
|
-
invisiblePrehydration: true,
|
|
9915
|
-
propBoolean: true,
|
|
9916
|
-
propNumber: true,
|
|
9917
|
-
propString: true,
|
|
9918
|
-
constructableCSS: true,
|
|
9919
|
-
devTools: false,
|
|
9920
|
-
shadowDelegatesFocus: true,
|
|
9921
|
-
initializeNextTick: false,
|
|
9922
|
-
asyncLoading: true,
|
|
9923
|
-
asyncQueue: false,
|
|
9924
|
-
transformTagName: false,
|
|
9925
|
-
attachStyles: true,
|
|
9926
|
-
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
9927
|
-
experimentalSlotFixes: false
|
|
9928
|
-
};
|
|
9929
|
-
var Env = {};
|
|
9930
|
-
var NAMESPACE = (
|
|
9931
|
-
/* default */
|
|
9932
|
-
"app"
|
|
9933
|
-
);
|
|
9934
|
-
|
|
9935
10383
|
/*
|
|
9936
|
-
Stencil Hydrate Runner v4.
|
|
10384
|
+
Stencil Hydrate Runner v4.39.0 | MIT Licensed | https://stenciljs.com
|
|
9937
10385
|
*/
|
|
9938
10386
|
var __defProp = Object.defineProperty;
|
|
9939
10387
|
var __export = (target, all) => {
|
|
9940
10388
|
for (var name in all)
|
|
9941
10389
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9942
10390
|
};
|
|
10391
|
+
var Build = {
|
|
10392
|
+
isDev: BUILD.isDev ? true : false,
|
|
10393
|
+
isBrowser: true,
|
|
10394
|
+
isServer: false,
|
|
10395
|
+
isTesting: BUILD.isTesting ? true : false
|
|
10396
|
+
};
|
|
10397
|
+
|
|
10398
|
+
// src/utils/constants.ts
|
|
10399
|
+
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
10400
|
+
PrimitiveType2["Undefined"] = "undefined";
|
|
10401
|
+
PrimitiveType2["Null"] = "null";
|
|
10402
|
+
PrimitiveType2["String"] = "string";
|
|
10403
|
+
PrimitiveType2["Number"] = "number";
|
|
10404
|
+
PrimitiveType2["SpecialNumber"] = "number";
|
|
10405
|
+
PrimitiveType2["Boolean"] = "boolean";
|
|
10406
|
+
PrimitiveType2["BigInt"] = "bigint";
|
|
10407
|
+
return PrimitiveType2;
|
|
10408
|
+
})(PrimitiveType || {});
|
|
10409
|
+
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
10410
|
+
NonPrimitiveType2["Array"] = "array";
|
|
10411
|
+
NonPrimitiveType2["Date"] = "date";
|
|
10412
|
+
NonPrimitiveType2["Map"] = "map";
|
|
10413
|
+
NonPrimitiveType2["Object"] = "object";
|
|
10414
|
+
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
10415
|
+
NonPrimitiveType2["Set"] = "set";
|
|
10416
|
+
NonPrimitiveType2["Channel"] = "channel";
|
|
10417
|
+
NonPrimitiveType2["Symbol"] = "symbol";
|
|
10418
|
+
return NonPrimitiveType2;
|
|
10419
|
+
})(NonPrimitiveType || {});
|
|
10420
|
+
var TYPE_CONSTANT = "type";
|
|
10421
|
+
var VALUE_CONSTANT = "value";
|
|
10422
|
+
var SERIALIZED_PREFIX = "serialized:";
|
|
10423
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
10424
|
+
"%cstencil",
|
|
10425
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
10426
|
+
];
|
|
9943
10427
|
|
|
9944
10428
|
// src/runtime/runtime-constants.ts
|
|
9945
10429
|
var CONTENT_REF_ID = "r";
|
|
@@ -9950,310 +10434,824 @@ var HYDRATE_ID = "s-id";
|
|
|
9950
10434
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
9951
10435
|
var STENCIL_DOC_DATA = "_stencilDocData";
|
|
9952
10436
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
var attrHandler = {
|
|
9956
|
-
get(obj, prop) {
|
|
9957
|
-
if (prop in obj) {
|
|
9958
|
-
return obj[prop];
|
|
9959
|
-
}
|
|
9960
|
-
if (typeof prop !== "symbol" && !isNaN(prop)) {
|
|
9961
|
-
return obj.__items[prop];
|
|
9962
|
-
}
|
|
9963
|
-
return void 0;
|
|
9964
|
-
}
|
|
10437
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
10438
|
+
var H = win.HTMLElement || class {
|
|
9965
10439
|
};
|
|
9966
|
-
var
|
|
9967
|
-
var
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
}
|
|
9972
|
-
get length() {
|
|
9973
|
-
return this.__items.length;
|
|
9974
|
-
}
|
|
9975
|
-
item(index) {
|
|
9976
|
-
return this.__items[index] || null;
|
|
9977
|
-
}
|
|
9978
|
-
setNamedItem(attr) {
|
|
9979
|
-
attr.namespaceURI = null;
|
|
9980
|
-
this.setNamedItemNS(attr);
|
|
10440
|
+
var supportsShadow = BUILD.shadowDom;
|
|
10441
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
10442
|
+
try {
|
|
10443
|
+
new CSSStyleSheet();
|
|
10444
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
10445
|
+
} catch (e) {
|
|
9981
10446
|
}
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
10447
|
+
return false;
|
|
10448
|
+
})() : false;
|
|
10449
|
+
|
|
10450
|
+
// src/utils/helpers.ts
|
|
10451
|
+
var isString = (v) => typeof v === "string";
|
|
10452
|
+
|
|
10453
|
+
// src/utils/local-value.ts
|
|
10454
|
+
var LocalValue = class _LocalValue {
|
|
10455
|
+
constructor(type, value) {
|
|
10456
|
+
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
10457
|
+
this.type = type;
|
|
9989
10458
|
} else {
|
|
9990
|
-
this.
|
|
9991
|
-
|
|
9992
|
-
}
|
|
9993
|
-
getNamedItem(attrName) {
|
|
9994
|
-
if (this.caseInsensitive) {
|
|
9995
|
-
attrName = attrName.toLowerCase();
|
|
10459
|
+
this.type = type;
|
|
10460
|
+
this.value = value;
|
|
9996
10461
|
}
|
|
9997
|
-
return this.getNamedItemNS(null, attrName);
|
|
9998
10462
|
}
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10463
|
+
/**
|
|
10464
|
+
* Creates a new LocalValue object with a string value.
|
|
10465
|
+
*
|
|
10466
|
+
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
10467
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10468
|
+
*/
|
|
10469
|
+
static createStringValue(value) {
|
|
10470
|
+
return new _LocalValue("string" /* String */, value);
|
|
10002
10471
|
}
|
|
10003
|
-
|
|
10004
|
-
|
|
10472
|
+
/**
|
|
10473
|
+
* Creates a new LocalValue object with a number value.
|
|
10474
|
+
*
|
|
10475
|
+
* @param {number} value - The number value.
|
|
10476
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10477
|
+
*/
|
|
10478
|
+
static createNumberValue(value) {
|
|
10479
|
+
return new _LocalValue("number" /* Number */, value);
|
|
10005
10480
|
}
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10481
|
+
/**
|
|
10482
|
+
* Creates a new LocalValue object with a special number value.
|
|
10483
|
+
*
|
|
10484
|
+
* @param {number} value - The value of the special number.
|
|
10485
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10486
|
+
*/
|
|
10487
|
+
static createSpecialNumberValue(value) {
|
|
10488
|
+
if (Number.isNaN(value)) {
|
|
10489
|
+
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
10012
10490
|
}
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
done: i === this.length,
|
|
10019
|
-
value: this.item(i++)
|
|
10020
|
-
})
|
|
10021
|
-
};
|
|
10022
|
-
}
|
|
10023
|
-
get [Symbol.toStringTag]() {
|
|
10024
|
-
return "MockAttributeMap";
|
|
10025
|
-
}
|
|
10026
|
-
};
|
|
10027
|
-
function getNamespaceURI(namespaceURI) {
|
|
10028
|
-
return namespaceURI === XLINK_NS ? null : namespaceURI;
|
|
10029
|
-
}
|
|
10030
|
-
function cloneAttributes(srcAttrs, sortByName = false) {
|
|
10031
|
-
const dstAttrs = new MockAttributeMap(srcAttrs.caseInsensitive);
|
|
10032
|
-
if (srcAttrs != null) {
|
|
10033
|
-
const attrLen = srcAttrs.length;
|
|
10034
|
-
if (sortByName && attrLen > 1) {
|
|
10035
|
-
const sortedAttrs = [];
|
|
10036
|
-
for (let i = 0; i < attrLen; i++) {
|
|
10037
|
-
const srcAttr = srcAttrs.item(i);
|
|
10038
|
-
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
10039
|
-
sortedAttrs.push(dstAttr);
|
|
10040
|
-
}
|
|
10041
|
-
sortedAttrs.sort(sortAttributes).forEach((attr) => {
|
|
10042
|
-
dstAttrs.setNamedItemNS(attr);
|
|
10043
|
-
});
|
|
10044
|
-
} else {
|
|
10045
|
-
for (let i = 0; i < attrLen; i++) {
|
|
10046
|
-
const srcAttr = srcAttrs.item(i);
|
|
10047
|
-
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
10048
|
-
dstAttrs.setNamedItemNS(dstAttr);
|
|
10049
|
-
}
|
|
10491
|
+
if (Object.is(value, -0)) {
|
|
10492
|
+
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
10493
|
+
}
|
|
10494
|
+
if (value === Infinity) {
|
|
10495
|
+
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
10050
10496
|
}
|
|
10497
|
+
if (value === -Infinity) {
|
|
10498
|
+
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
10499
|
+
}
|
|
10500
|
+
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
10051
10501
|
}
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
}
|
|
10059
|
-
var MockAttr = class {
|
|
10060
|
-
constructor(attrName, attrValue, namespaceURI = null) {
|
|
10061
|
-
this._name = attrName;
|
|
10062
|
-
this._value = String(attrValue);
|
|
10063
|
-
this._namespaceURI = namespaceURI;
|
|
10502
|
+
/**
|
|
10503
|
+
* Creates a new LocalValue object with an undefined value.
|
|
10504
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10505
|
+
*/
|
|
10506
|
+
static createUndefinedValue() {
|
|
10507
|
+
return new _LocalValue("undefined" /* Undefined */);
|
|
10064
10508
|
}
|
|
10065
|
-
|
|
10066
|
-
|
|
10509
|
+
/**
|
|
10510
|
+
* Creates a new LocalValue object with a null value.
|
|
10511
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10512
|
+
*/
|
|
10513
|
+
static createNullValue() {
|
|
10514
|
+
return new _LocalValue("null" /* Null */);
|
|
10067
10515
|
}
|
|
10068
|
-
|
|
10069
|
-
|
|
10516
|
+
/**
|
|
10517
|
+
* Creates a new LocalValue object with a boolean value.
|
|
10518
|
+
*
|
|
10519
|
+
* @param {boolean} value - The boolean value.
|
|
10520
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10521
|
+
*/
|
|
10522
|
+
static createBooleanValue(value) {
|
|
10523
|
+
return new _LocalValue("boolean" /* Boolean */, value);
|
|
10070
10524
|
}
|
|
10071
|
-
|
|
10072
|
-
|
|
10525
|
+
/**
|
|
10526
|
+
* Creates a new LocalValue object with a BigInt value.
|
|
10527
|
+
*
|
|
10528
|
+
* @param {BigInt} value - The BigInt value.
|
|
10529
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10530
|
+
*/
|
|
10531
|
+
static createBigIntValue(value) {
|
|
10532
|
+
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
10073
10533
|
}
|
|
10074
|
-
|
|
10075
|
-
|
|
10534
|
+
/**
|
|
10535
|
+
* Creates a new LocalValue object with an array.
|
|
10536
|
+
*
|
|
10537
|
+
* @param {Array} value - The array.
|
|
10538
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10539
|
+
*/
|
|
10540
|
+
static createArrayValue(value) {
|
|
10541
|
+
return new _LocalValue("array" /* Array */, value);
|
|
10076
10542
|
}
|
|
10077
|
-
|
|
10078
|
-
|
|
10543
|
+
/**
|
|
10544
|
+
* Creates a new LocalValue object with date value.
|
|
10545
|
+
*
|
|
10546
|
+
* @param {string} value - The date.
|
|
10547
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10548
|
+
*/
|
|
10549
|
+
static createDateValue(value) {
|
|
10550
|
+
return new _LocalValue("date" /* Date */, value);
|
|
10079
10551
|
}
|
|
10080
|
-
|
|
10081
|
-
|
|
10552
|
+
/**
|
|
10553
|
+
* Creates a new LocalValue object of map value.
|
|
10554
|
+
* @param {Map} map - The map.
|
|
10555
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10556
|
+
*/
|
|
10557
|
+
static createMapValue(map2) {
|
|
10558
|
+
const value = [];
|
|
10559
|
+
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
10560
|
+
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
10561
|
+
});
|
|
10562
|
+
return new _LocalValue("map" /* Map */, value);
|
|
10082
10563
|
}
|
|
10083
|
-
|
|
10084
|
-
|
|
10564
|
+
/**
|
|
10565
|
+
* Creates a new LocalValue object from the passed object.
|
|
10566
|
+
*
|
|
10567
|
+
* @param object the object to create a LocalValue from
|
|
10568
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10569
|
+
*/
|
|
10570
|
+
static createObjectValue(object) {
|
|
10571
|
+
const value = [];
|
|
10572
|
+
Object.entries(object).forEach(([key, val]) => {
|
|
10573
|
+
value.push([key, _LocalValue.getArgument(val)]);
|
|
10574
|
+
});
|
|
10575
|
+
return new _LocalValue("object" /* Object */, value);
|
|
10085
10576
|
}
|
|
10086
|
-
|
|
10087
|
-
|
|
10577
|
+
/**
|
|
10578
|
+
* Creates a new LocalValue object of regular expression value.
|
|
10579
|
+
*
|
|
10580
|
+
* @param {string} value - The value of the regular expression.
|
|
10581
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10582
|
+
*/
|
|
10583
|
+
static createRegularExpressionValue(value) {
|
|
10584
|
+
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
10088
10585
|
}
|
|
10089
|
-
|
|
10090
|
-
|
|
10586
|
+
/**
|
|
10587
|
+
* Creates a new LocalValue object with the specified value.
|
|
10588
|
+
* @param {Set} value - The value to be set.
|
|
10589
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10590
|
+
*/
|
|
10591
|
+
static createSetValue(value) {
|
|
10592
|
+
return new _LocalValue("set" /* Set */, value);
|
|
10091
10593
|
}
|
|
10092
|
-
|
|
10093
|
-
|
|
10594
|
+
/**
|
|
10595
|
+
* Creates a new LocalValue object with the given channel value
|
|
10596
|
+
*
|
|
10597
|
+
* @param {ChannelValue} value - The channel value.
|
|
10598
|
+
* @returns {LocalValue} - The created LocalValue object.
|
|
10599
|
+
*/
|
|
10600
|
+
static createChannelValue(value) {
|
|
10601
|
+
return new _LocalValue("channel" /* Channel */, value);
|
|
10602
|
+
}
|
|
10603
|
+
/**
|
|
10604
|
+
* Creates a new LocalValue object with a Symbol value.
|
|
10605
|
+
*
|
|
10606
|
+
* @param {Symbol} symbol - The Symbol value
|
|
10607
|
+
* @returns {LocalValue} - The created LocalValue object
|
|
10608
|
+
*/
|
|
10609
|
+
static createSymbolValue(symbol) {
|
|
10610
|
+
const description = symbol.description || "Symbol()";
|
|
10611
|
+
return new _LocalValue("symbol" /* Symbol */, description);
|
|
10612
|
+
}
|
|
10613
|
+
static getArgument(argument) {
|
|
10614
|
+
const type = typeof argument;
|
|
10615
|
+
switch (type) {
|
|
10616
|
+
case "string" /* String */:
|
|
10617
|
+
return _LocalValue.createStringValue(argument);
|
|
10618
|
+
case "number" /* Number */:
|
|
10619
|
+
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
10620
|
+
return _LocalValue.createSpecialNumberValue(argument);
|
|
10621
|
+
}
|
|
10622
|
+
return _LocalValue.createNumberValue(argument);
|
|
10623
|
+
case "boolean" /* Boolean */:
|
|
10624
|
+
return _LocalValue.createBooleanValue(argument);
|
|
10625
|
+
case "bigint" /* BigInt */:
|
|
10626
|
+
return _LocalValue.createBigIntValue(argument);
|
|
10627
|
+
case "undefined" /* Undefined */:
|
|
10628
|
+
return _LocalValue.createUndefinedValue();
|
|
10629
|
+
case "symbol" /* Symbol */:
|
|
10630
|
+
return _LocalValue.createSymbolValue(argument);
|
|
10631
|
+
case "object" /* Object */:
|
|
10632
|
+
if (argument === null) {
|
|
10633
|
+
return _LocalValue.createNullValue();
|
|
10634
|
+
}
|
|
10635
|
+
if (argument instanceof Date) {
|
|
10636
|
+
return _LocalValue.createDateValue(argument);
|
|
10637
|
+
}
|
|
10638
|
+
if (argument instanceof Map) {
|
|
10639
|
+
const map2 = [];
|
|
10640
|
+
argument.forEach((value, key) => {
|
|
10641
|
+
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
10642
|
+
const objectValue = _LocalValue.getArgument(value);
|
|
10643
|
+
map2.push([objectKey, objectValue]);
|
|
10644
|
+
});
|
|
10645
|
+
return _LocalValue.createMapValue(argument);
|
|
10646
|
+
}
|
|
10647
|
+
if (argument instanceof Set) {
|
|
10648
|
+
const set = [];
|
|
10649
|
+
argument.forEach((value) => {
|
|
10650
|
+
set.push(_LocalValue.getArgument(value));
|
|
10651
|
+
});
|
|
10652
|
+
return _LocalValue.createSetValue(set);
|
|
10653
|
+
}
|
|
10654
|
+
if (argument instanceof Array) {
|
|
10655
|
+
const arr = [];
|
|
10656
|
+
argument.forEach((value) => {
|
|
10657
|
+
arr.push(_LocalValue.getArgument(value));
|
|
10658
|
+
});
|
|
10659
|
+
return _LocalValue.createArrayValue(arr);
|
|
10660
|
+
}
|
|
10661
|
+
if (argument instanceof RegExp) {
|
|
10662
|
+
return _LocalValue.createRegularExpressionValue({
|
|
10663
|
+
pattern: argument.source,
|
|
10664
|
+
flags: argument.flags
|
|
10665
|
+
});
|
|
10666
|
+
}
|
|
10667
|
+
return _LocalValue.createObjectValue(argument);
|
|
10668
|
+
}
|
|
10669
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
10670
|
+
}
|
|
10671
|
+
asMap() {
|
|
10672
|
+
return {
|
|
10673
|
+
[TYPE_CONSTANT]: this.type,
|
|
10674
|
+
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
10675
|
+
};
|
|
10094
10676
|
}
|
|
10095
10677
|
};
|
|
10096
10678
|
|
|
10097
|
-
// src/
|
|
10098
|
-
var
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10679
|
+
// src/utils/message-utils.ts
|
|
10680
|
+
var catchError = (diagnostics, err2, msg) => {
|
|
10681
|
+
const diagnostic = {
|
|
10682
|
+
level: "error",
|
|
10683
|
+
type: "build",
|
|
10684
|
+
header: "Build Error",
|
|
10685
|
+
messageText: "build error",
|
|
10686
|
+
lines: []
|
|
10687
|
+
};
|
|
10688
|
+
if (isString(msg)) {
|
|
10689
|
+
diagnostic.messageText = msg.length ? msg : "UNKNOWN ERROR";
|
|
10690
|
+
} else if (err2 != null) {
|
|
10691
|
+
if (err2.stack != null) {
|
|
10692
|
+
diagnostic.messageText = err2.stack.toString();
|
|
10106
10693
|
} else {
|
|
10107
|
-
|
|
10694
|
+
if (err2.message != null) {
|
|
10695
|
+
diagnostic.messageText = err2.message.length ? err2.message : "UNKNOWN ERROR";
|
|
10696
|
+
} else {
|
|
10697
|
+
diagnostic.messageText = err2.toString();
|
|
10698
|
+
}
|
|
10108
10699
|
}
|
|
10109
10700
|
}
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
return String(this._styles.get(prop) || "");
|
|
10701
|
+
if (diagnostics != null && !shouldIgnoreError(diagnostic.messageText)) {
|
|
10702
|
+
diagnostics.push(diagnostic);
|
|
10113
10703
|
}
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10704
|
+
return diagnostic;
|
|
10705
|
+
};
|
|
10706
|
+
var hasError = (diagnostics) => {
|
|
10707
|
+
if (diagnostics == null || diagnostics.length === 0) {
|
|
10708
|
+
return false;
|
|
10117
10709
|
}
|
|
10118
|
-
|
|
10119
|
-
|
|
10710
|
+
return diagnostics.some((d) => d.level === "error" && d.type !== "runtime");
|
|
10711
|
+
};
|
|
10712
|
+
var shouldIgnoreError = (msg) => {
|
|
10713
|
+
return msg === TASK_CANCELED_MSG;
|
|
10714
|
+
};
|
|
10715
|
+
var TASK_CANCELED_MSG = `task canceled`;
|
|
10716
|
+
|
|
10717
|
+
// src/utils/regular-expression.ts
|
|
10718
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
10719
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
10720
|
+
};
|
|
10721
|
+
|
|
10722
|
+
// src/utils/remote-value.ts
|
|
10723
|
+
var RemoteValue = class _RemoteValue {
|
|
10724
|
+
/**
|
|
10725
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
10726
|
+
*
|
|
10727
|
+
* @param serialized The serialized LocalValue object
|
|
10728
|
+
* @returns The original JavaScript value/object
|
|
10729
|
+
*/
|
|
10730
|
+
static fromLocalValue(serialized) {
|
|
10731
|
+
const type = serialized[TYPE_CONSTANT];
|
|
10732
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
10733
|
+
switch (type) {
|
|
10734
|
+
case "string" /* String */:
|
|
10735
|
+
return value;
|
|
10736
|
+
case "boolean" /* Boolean */:
|
|
10737
|
+
return value;
|
|
10738
|
+
case "bigint" /* BigInt */:
|
|
10739
|
+
return BigInt(value);
|
|
10740
|
+
case "undefined" /* Undefined */:
|
|
10741
|
+
return void 0;
|
|
10742
|
+
case "null" /* Null */:
|
|
10743
|
+
return null;
|
|
10744
|
+
case "number" /* Number */:
|
|
10745
|
+
if (value === "NaN") return NaN;
|
|
10746
|
+
if (value === "-0") return -0;
|
|
10747
|
+
if (value === "Infinity") return Infinity;
|
|
10748
|
+
if (value === "-Infinity") return -Infinity;
|
|
10749
|
+
return value;
|
|
10750
|
+
case "array" /* Array */:
|
|
10751
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
10752
|
+
case "date" /* Date */:
|
|
10753
|
+
return new Date(value);
|
|
10754
|
+
case "map" /* Map */:
|
|
10755
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
10756
|
+
for (const [key, val] of value) {
|
|
10757
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
10758
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
10759
|
+
map2.set(deserializedKey, deserializedValue);
|
|
10760
|
+
}
|
|
10761
|
+
return map2;
|
|
10762
|
+
case "object" /* Object */:
|
|
10763
|
+
const obj = {};
|
|
10764
|
+
for (const [key, val] of value) {
|
|
10765
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
10766
|
+
}
|
|
10767
|
+
return obj;
|
|
10768
|
+
case "regexp" /* RegularExpression */:
|
|
10769
|
+
const { pattern, flags } = value;
|
|
10770
|
+
return new RegExp(pattern, flags);
|
|
10771
|
+
case "set" /* Set */:
|
|
10772
|
+
const set = /* @__PURE__ */ new Set();
|
|
10773
|
+
for (const item of value) {
|
|
10774
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
10775
|
+
}
|
|
10776
|
+
return set;
|
|
10777
|
+
case "symbol" /* Symbol */:
|
|
10778
|
+
return Symbol(value);
|
|
10779
|
+
default:
|
|
10780
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
10781
|
+
}
|
|
10120
10782
|
}
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10783
|
+
/**
|
|
10784
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
10785
|
+
*
|
|
10786
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
10787
|
+
* @returns Array of deserialized JavaScript values
|
|
10788
|
+
*/
|
|
10789
|
+
static fromLocalValueArray(serializedValues) {
|
|
10790
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
10127
10791
|
}
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10792
|
+
/**
|
|
10793
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
10794
|
+
*
|
|
10795
|
+
* @param obj Object to verify
|
|
10796
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
10797
|
+
*/
|
|
10798
|
+
static isLocalValueObject(obj) {
|
|
10799
|
+
if (typeof obj !== "object" || obj === null) {
|
|
10800
|
+
return false;
|
|
10132
10801
|
}
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
});
|
|
10802
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
10803
|
+
return false;
|
|
10804
|
+
}
|
|
10805
|
+
const type = obj[TYPE_CONSTANT];
|
|
10806
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
10807
|
+
if (!hasTypeProperty) {
|
|
10808
|
+
return false;
|
|
10809
|
+
}
|
|
10810
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
10811
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
10812
|
+
}
|
|
10813
|
+
return true;
|
|
10146
10814
|
}
|
|
10147
10815
|
};
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
}
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10816
|
+
|
|
10817
|
+
// src/utils/result.ts
|
|
10818
|
+
var result_exports = {};
|
|
10819
|
+
__export(result_exports, {
|
|
10820
|
+
err: () => err,
|
|
10821
|
+
map: () => map,
|
|
10822
|
+
ok: () => ok,
|
|
10823
|
+
unwrap: () => unwrap,
|
|
10824
|
+
unwrapErr: () => unwrapErr
|
|
10825
|
+
});
|
|
10826
|
+
var ok = (value) => ({
|
|
10827
|
+
isOk: true,
|
|
10828
|
+
isErr: false,
|
|
10829
|
+
value
|
|
10830
|
+
});
|
|
10831
|
+
var err = (value) => ({
|
|
10832
|
+
isOk: false,
|
|
10833
|
+
isErr: true,
|
|
10834
|
+
value
|
|
10835
|
+
});
|
|
10836
|
+
function map(result, fn) {
|
|
10837
|
+
if (result.isOk) {
|
|
10838
|
+
const val = fn(result.value);
|
|
10839
|
+
if (val instanceof Promise) {
|
|
10840
|
+
return val.then((newVal) => ok(newVal));
|
|
10162
10841
|
} else {
|
|
10163
|
-
|
|
10842
|
+
return ok(val);
|
|
10164
10843
|
}
|
|
10165
|
-
|
|
10844
|
+
}
|
|
10845
|
+
if (result.isErr) {
|
|
10846
|
+
const value = result.value;
|
|
10847
|
+
return err(value);
|
|
10848
|
+
}
|
|
10849
|
+
throw "should never get here";
|
|
10850
|
+
}
|
|
10851
|
+
var unwrap = (result) => {
|
|
10852
|
+
if (result.isOk) {
|
|
10853
|
+
return result.value;
|
|
10854
|
+
} else {
|
|
10855
|
+
throw result.value;
|
|
10166
10856
|
}
|
|
10167
10857
|
};
|
|
10168
|
-
|
|
10169
|
-
if (
|
|
10170
|
-
|
|
10171
|
-
|
|
10858
|
+
var unwrapErr = (result) => {
|
|
10859
|
+
if (result.isErr) {
|
|
10860
|
+
return result.value;
|
|
10861
|
+
} else {
|
|
10862
|
+
throw result.value;
|
|
10172
10863
|
}
|
|
10173
|
-
|
|
10864
|
+
};
|
|
10865
|
+
|
|
10866
|
+
// src/utils/serialize.ts
|
|
10867
|
+
function serializeProperty(value) {
|
|
10868
|
+
if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
|
|
10869
|
+
return value;
|
|
10870
|
+
}
|
|
10871
|
+
const arg = LocalValue.getArgument(value);
|
|
10872
|
+
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
10174
10873
|
}
|
|
10175
|
-
function
|
|
10176
|
-
if (
|
|
10177
|
-
|
|
10874
|
+
function deserializeProperty(value) {
|
|
10875
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
10876
|
+
return value;
|
|
10178
10877
|
}
|
|
10179
|
-
return
|
|
10878
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
10180
10879
|
}
|
|
10181
10880
|
|
|
10182
|
-
// src/
|
|
10183
|
-
var
|
|
10184
|
-
|
|
10185
|
-
|
|
10881
|
+
// src/utils/util.ts
|
|
10882
|
+
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
10883
|
+
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
|
10884
|
+
var isTsFile = lowerPathParam(
|
|
10885
|
+
(p) => !isDtsFile(p) && (p.endsWith(".ts") || p.endsWith(".mts") || p.endsWith(".cts"))
|
|
10886
|
+
);
|
|
10887
|
+
var isTsxFile = lowerPathParam(
|
|
10888
|
+
(p) => p.endsWith(".tsx") || p.endsWith(".mtsx") || p.endsWith(".ctsx")
|
|
10889
|
+
);
|
|
10890
|
+
var isJsxFile = lowerPathParam(
|
|
10891
|
+
(p) => p.endsWith(".jsx") || p.endsWith(".mjsx") || p.endsWith(".cjsx")
|
|
10892
|
+
);
|
|
10893
|
+
var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") || p.endsWith(".cjs"));
|
|
10894
|
+
|
|
10895
|
+
// src/utils/shadow-css.ts
|
|
10896
|
+
/**
|
|
10897
|
+
* @license
|
|
10898
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
10899
|
+
*
|
|
10900
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
10901
|
+
* found in the LICENSE file at https://angular.io/license
|
|
10902
|
+
*
|
|
10903
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
10904
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
10905
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
10906
|
+
*/
|
|
10907
|
+
var _polyfillHost = "-shadowcsshost";
|
|
10908
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
10909
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
10910
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
10911
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
10912
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
10913
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
10914
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
10915
|
+
var createSupportsRuleRe = (selector) => {
|
|
10916
|
+
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
10917
|
+
return new RegExp(
|
|
10918
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
10919
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
10920
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
10921
|
+
"g"
|
|
10922
|
+
);
|
|
10923
|
+
};
|
|
10924
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
10925
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
10926
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
10927
|
+
|
|
10928
|
+
// src/runtime/mode.ts
|
|
10929
|
+
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
10930
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
10931
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
10932
|
+
var baseClass = BUILD.lazyLoad ? class {
|
|
10933
|
+
} : globalThis.HTMLElement || class {
|
|
10934
|
+
};
|
|
10935
|
+
|
|
10936
|
+
// src/runtime/tag-transform.ts
|
|
10937
|
+
var tagTransformer = void 0;
|
|
10938
|
+
function transformTag(tag) {
|
|
10939
|
+
if (!tagTransformer) return tag;
|
|
10940
|
+
return tagTransformer(tag);
|
|
10941
|
+
}
|
|
10942
|
+
function setTagTransformer(transformer) {
|
|
10943
|
+
if (tagTransformer) {
|
|
10944
|
+
console.warn(`
|
|
10945
|
+
A tagTransformer has already been set.
|
|
10946
|
+
Overwriting it may lead to error and unexpected results if your components have already been defined.
|
|
10947
|
+
`);
|
|
10186
10948
|
}
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10949
|
+
tagTransformer = transformer;
|
|
10950
|
+
}
|
|
10951
|
+
|
|
10952
|
+
// src/mock-doc/attribute.ts
|
|
10953
|
+
var attrHandler = {
|
|
10954
|
+
get(obj, prop) {
|
|
10955
|
+
if (prop in obj) {
|
|
10956
|
+
return obj[prop];
|
|
10192
10957
|
}
|
|
10193
|
-
if (
|
|
10194
|
-
|
|
10958
|
+
if (typeof prop !== "symbol" && !isNaN(prop)) {
|
|
10959
|
+
return obj.__items[prop];
|
|
10195
10960
|
}
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10961
|
+
return void 0;
|
|
10962
|
+
}
|
|
10963
|
+
};
|
|
10964
|
+
var createAttributeProxy = (caseInsensitive) => new Proxy(new MockAttributeMap(caseInsensitive), attrHandler);
|
|
10965
|
+
var MockAttributeMap = class {
|
|
10966
|
+
constructor(caseInsensitive = false) {
|
|
10967
|
+
this.caseInsensitive = caseInsensitive;
|
|
10968
|
+
this.__items = [];
|
|
10969
|
+
}
|
|
10970
|
+
get length() {
|
|
10971
|
+
return this.__items.length;
|
|
10972
|
+
}
|
|
10973
|
+
item(index) {
|
|
10974
|
+
return this.__items[index] || null;
|
|
10975
|
+
}
|
|
10976
|
+
setNamedItem(attr) {
|
|
10977
|
+
attr.namespaceURI = null;
|
|
10978
|
+
this.setNamedItemNS(attr);
|
|
10979
|
+
}
|
|
10980
|
+
setNamedItemNS(attr) {
|
|
10981
|
+
if (attr != null && attr.value != null) {
|
|
10982
|
+
attr.value = String(attr.value);
|
|
10206
10983
|
}
|
|
10207
|
-
const
|
|
10208
|
-
if (
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
tempDisableCallbacks.add(doc);
|
|
10213
|
-
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
10214
|
-
for (let i = 0; i < host.childNodes.length; i++) {
|
|
10215
|
-
const childNode = host.childNodes[i];
|
|
10216
|
-
childNode.remove();
|
|
10217
|
-
upgradedCmp.appendChild(childNode);
|
|
10218
|
-
}
|
|
10219
|
-
tempDisableCallbacks.delete(doc);
|
|
10220
|
-
if (proxyElements.has(host)) {
|
|
10221
|
-
proxyElements.set(host, upgradedCmp);
|
|
10222
|
-
}
|
|
10223
|
-
}
|
|
10224
|
-
fireConnectedCallback(host);
|
|
10225
|
-
});
|
|
10984
|
+
const existingAttr = this.__items.find((a) => a.name === attr.name && a.namespaceURI === attr.namespaceURI);
|
|
10985
|
+
if (existingAttr != null) {
|
|
10986
|
+
existingAttr.value = attr.value;
|
|
10987
|
+
} else {
|
|
10988
|
+
this.__items.push(attr);
|
|
10226
10989
|
}
|
|
10227
10990
|
}
|
|
10228
|
-
|
|
10229
|
-
if (this.
|
|
10230
|
-
|
|
10231
|
-
if (def != null) {
|
|
10232
|
-
return def.cstr;
|
|
10233
|
-
}
|
|
10991
|
+
getNamedItem(attrName) {
|
|
10992
|
+
if (this.caseInsensitive) {
|
|
10993
|
+
attrName = attrName.toLowerCase();
|
|
10234
10994
|
}
|
|
10235
|
-
return
|
|
10995
|
+
return this.getNamedItemNS(null, attrName);
|
|
10236
10996
|
}
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10997
|
+
getNamedItemNS(namespaceURI, attrName) {
|
|
10998
|
+
namespaceURI = getNamespaceURI(namespaceURI);
|
|
10999
|
+
return this.__items.find((attr) => attr.name === attrName && getNamespaceURI(attr.namespaceURI) === namespaceURI) || null;
|
|
11000
|
+
}
|
|
11001
|
+
removeNamedItem(attr) {
|
|
11002
|
+
this.removeNamedItemNS(attr);
|
|
11003
|
+
}
|
|
11004
|
+
removeNamedItemNS(attr) {
|
|
11005
|
+
for (let i = 0, ii = this.__items.length; i < ii; i++) {
|
|
11006
|
+
if (this.__items[i].name === attr.name && this.__items[i].namespaceURI === attr.namespaceURI) {
|
|
11007
|
+
this.__items.splice(i, 1);
|
|
11008
|
+
break;
|
|
10241
11009
|
}
|
|
10242
11010
|
}
|
|
10243
|
-
return void 0;
|
|
10244
11011
|
}
|
|
10245
|
-
|
|
11012
|
+
[Symbol.iterator]() {
|
|
11013
|
+
let i = 0;
|
|
11014
|
+
return {
|
|
11015
|
+
next: () => ({
|
|
11016
|
+
done: i === this.length,
|
|
11017
|
+
value: this.item(i++)
|
|
11018
|
+
})
|
|
11019
|
+
};
|
|
10246
11020
|
}
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
this.__registry.clear();
|
|
10250
|
-
}
|
|
10251
|
-
if (this.__whenDefined != null) {
|
|
10252
|
-
this.__whenDefined.clear();
|
|
10253
|
-
}
|
|
11021
|
+
get [Symbol.toStringTag]() {
|
|
11022
|
+
return "MockAttributeMap";
|
|
10254
11023
|
}
|
|
10255
|
-
|
|
10256
|
-
|
|
11024
|
+
};
|
|
11025
|
+
function getNamespaceURI(namespaceURI) {
|
|
11026
|
+
return namespaceURI === XLINK_NS ? null : namespaceURI;
|
|
11027
|
+
}
|
|
11028
|
+
function cloneAttributes(srcAttrs, sortByName = false) {
|
|
11029
|
+
const dstAttrs = new MockAttributeMap(srcAttrs.caseInsensitive);
|
|
11030
|
+
if (srcAttrs != null) {
|
|
11031
|
+
const attrLen = srcAttrs.length;
|
|
11032
|
+
if (sortByName && attrLen > 1) {
|
|
11033
|
+
const sortedAttrs = [];
|
|
11034
|
+
for (let i = 0; i < attrLen; i++) {
|
|
11035
|
+
const srcAttr = srcAttrs.item(i);
|
|
11036
|
+
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
11037
|
+
sortedAttrs.push(dstAttr);
|
|
11038
|
+
}
|
|
11039
|
+
sortedAttrs.sort(sortAttributes).forEach((attr) => {
|
|
11040
|
+
dstAttrs.setNamedItemNS(attr);
|
|
11041
|
+
});
|
|
11042
|
+
} else {
|
|
11043
|
+
for (let i = 0; i < attrLen; i++) {
|
|
11044
|
+
const srcAttr = srcAttrs.item(i);
|
|
11045
|
+
const dstAttr = new MockAttr(srcAttr.name, srcAttr.value, srcAttr.namespaceURI);
|
|
11046
|
+
dstAttrs.setNamedItemNS(dstAttr);
|
|
11047
|
+
}
|
|
11048
|
+
}
|
|
11049
|
+
}
|
|
11050
|
+
return dstAttrs;
|
|
11051
|
+
}
|
|
11052
|
+
function sortAttributes(a, b) {
|
|
11053
|
+
if (a.name < b.name) return -1;
|
|
11054
|
+
if (a.name > b.name) return 1;
|
|
11055
|
+
return 0;
|
|
11056
|
+
}
|
|
11057
|
+
var MockAttr = class {
|
|
11058
|
+
constructor(attrName, attrValue, namespaceURI = null) {
|
|
11059
|
+
this._name = attrName;
|
|
11060
|
+
this._value = String(attrValue);
|
|
11061
|
+
this._namespaceURI = namespaceURI;
|
|
11062
|
+
}
|
|
11063
|
+
get name() {
|
|
11064
|
+
return this._name;
|
|
11065
|
+
}
|
|
11066
|
+
set name(value) {
|
|
11067
|
+
this._name = value;
|
|
11068
|
+
}
|
|
11069
|
+
get value() {
|
|
11070
|
+
return this._value;
|
|
11071
|
+
}
|
|
11072
|
+
set value(value) {
|
|
11073
|
+
this._value = String(value);
|
|
11074
|
+
}
|
|
11075
|
+
get nodeName() {
|
|
11076
|
+
return this._name;
|
|
11077
|
+
}
|
|
11078
|
+
set nodeName(value) {
|
|
11079
|
+
this._name = value;
|
|
11080
|
+
}
|
|
11081
|
+
get nodeValue() {
|
|
11082
|
+
return this._value;
|
|
11083
|
+
}
|
|
11084
|
+
set nodeValue(value) {
|
|
11085
|
+
this._value = String(value);
|
|
11086
|
+
}
|
|
11087
|
+
get namespaceURI() {
|
|
11088
|
+
return this._namespaceURI;
|
|
11089
|
+
}
|
|
11090
|
+
set namespaceURI(namespaceURI) {
|
|
11091
|
+
this._namespaceURI = namespaceURI;
|
|
11092
|
+
}
|
|
11093
|
+
};
|
|
11094
|
+
|
|
11095
|
+
// src/mock-doc/css-style-declaration.ts
|
|
11096
|
+
var MockCSSStyleDeclaration = class {
|
|
11097
|
+
constructor() {
|
|
11098
|
+
this._styles = /* @__PURE__ */ new Map();
|
|
11099
|
+
}
|
|
11100
|
+
setProperty(prop, value) {
|
|
11101
|
+
prop = jsCaseToCssCase(prop);
|
|
11102
|
+
if (value == null || value === "") {
|
|
11103
|
+
this._styles.delete(prop);
|
|
11104
|
+
} else {
|
|
11105
|
+
this._styles.set(prop, String(value));
|
|
11106
|
+
}
|
|
11107
|
+
}
|
|
11108
|
+
getPropertyValue(prop) {
|
|
11109
|
+
prop = jsCaseToCssCase(prop);
|
|
11110
|
+
return String(this._styles.get(prop) || "");
|
|
11111
|
+
}
|
|
11112
|
+
removeProperty(prop) {
|
|
11113
|
+
prop = jsCaseToCssCase(prop);
|
|
11114
|
+
this._styles.delete(prop);
|
|
11115
|
+
}
|
|
11116
|
+
get length() {
|
|
11117
|
+
return this._styles.size;
|
|
11118
|
+
}
|
|
11119
|
+
get cssText() {
|
|
11120
|
+
const cssText = [];
|
|
11121
|
+
this._styles.forEach((value, prop) => {
|
|
11122
|
+
cssText.push(`${prop}: ${value};`);
|
|
11123
|
+
});
|
|
11124
|
+
return cssText.join(" ").trim();
|
|
11125
|
+
}
|
|
11126
|
+
set cssText(cssText) {
|
|
11127
|
+
if (cssText == null || cssText === "") {
|
|
11128
|
+
this._styles.clear();
|
|
11129
|
+
return;
|
|
11130
|
+
}
|
|
11131
|
+
cssText.split(";").forEach((rule) => {
|
|
11132
|
+
rule = rule.trim();
|
|
11133
|
+
if (rule.length > 0) {
|
|
11134
|
+
const splt = rule.split(":");
|
|
11135
|
+
if (splt.length > 1) {
|
|
11136
|
+
const prop = splt[0].trim();
|
|
11137
|
+
const value = splt.slice(1).join(":").trim();
|
|
11138
|
+
if (prop !== "" && value !== "") {
|
|
11139
|
+
this._styles.set(jsCaseToCssCase(prop), value);
|
|
11140
|
+
}
|
|
11141
|
+
}
|
|
11142
|
+
}
|
|
11143
|
+
});
|
|
11144
|
+
}
|
|
11145
|
+
};
|
|
11146
|
+
function createCSSStyleDeclaration() {
|
|
11147
|
+
return new Proxy(new MockCSSStyleDeclaration(), cssProxyHandler);
|
|
11148
|
+
}
|
|
11149
|
+
var cssProxyHandler = {
|
|
11150
|
+
get(cssStyle, prop) {
|
|
11151
|
+
if (prop in cssStyle) {
|
|
11152
|
+
return cssStyle[prop];
|
|
11153
|
+
}
|
|
11154
|
+
prop = cssCaseToJsCase(prop);
|
|
11155
|
+
return cssStyle.getPropertyValue(prop);
|
|
11156
|
+
},
|
|
11157
|
+
set(cssStyle, prop, value) {
|
|
11158
|
+
if (prop in cssStyle) {
|
|
11159
|
+
cssStyle[prop] = value;
|
|
11160
|
+
} else {
|
|
11161
|
+
cssStyle.setProperty(prop, value);
|
|
11162
|
+
}
|
|
11163
|
+
return true;
|
|
11164
|
+
}
|
|
11165
|
+
};
|
|
11166
|
+
function cssCaseToJsCase(str) {
|
|
11167
|
+
if (str.length > 1 && str.includes("-") === true) {
|
|
11168
|
+
str = str.toLowerCase().split("-").map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
11169
|
+
str = str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
11170
|
+
}
|
|
11171
|
+
return str;
|
|
11172
|
+
}
|
|
11173
|
+
function jsCaseToCssCase(str) {
|
|
11174
|
+
if (str.length > 1 && str.includes("-") === false && /[A-Z]/.test(str) === true) {
|
|
11175
|
+
str = str.replace(/([A-Z])/g, (g) => " " + g[0]).trim().replace(/ /g, "-").toLowerCase();
|
|
11176
|
+
}
|
|
11177
|
+
return str;
|
|
11178
|
+
}
|
|
11179
|
+
|
|
11180
|
+
// src/mock-doc/custom-element-registry.ts
|
|
11181
|
+
var MockCustomElementRegistry = class {
|
|
11182
|
+
constructor(win2) {
|
|
11183
|
+
this.win = win2;
|
|
11184
|
+
}
|
|
11185
|
+
define(tagName, cstr, options) {
|
|
11186
|
+
if (tagName.toLowerCase() !== tagName) {
|
|
11187
|
+
throw new Error(
|
|
11188
|
+
`Failed to execute 'define' on 'CustomElementRegistry': "${tagName}" is not a valid custom element name`
|
|
11189
|
+
);
|
|
11190
|
+
}
|
|
11191
|
+
if (this.__registry == null) {
|
|
11192
|
+
this.__registry = /* @__PURE__ */ new Map();
|
|
11193
|
+
}
|
|
11194
|
+
this.__registry.set(tagName, { cstr, options });
|
|
11195
|
+
if (this.__whenDefined != null) {
|
|
11196
|
+
const whenDefinedResolveFns = this.__whenDefined.get(tagName);
|
|
11197
|
+
if (whenDefinedResolveFns != null) {
|
|
11198
|
+
whenDefinedResolveFns.forEach((whenDefinedResolveFn) => {
|
|
11199
|
+
whenDefinedResolveFn();
|
|
11200
|
+
});
|
|
11201
|
+
whenDefinedResolveFns.length = 0;
|
|
11202
|
+
this.__whenDefined.delete(tagName);
|
|
11203
|
+
}
|
|
11204
|
+
}
|
|
11205
|
+
const doc = this.win.document;
|
|
11206
|
+
if (doc != null) {
|
|
11207
|
+
const hosts = doc.querySelectorAll(tagName);
|
|
11208
|
+
hosts.forEach((host) => {
|
|
11209
|
+
if (upgradedElements.has(host) === false) {
|
|
11210
|
+
tempDisableCallbacks.add(doc);
|
|
11211
|
+
const upgradedCmp = createCustomElement(this, doc, tagName);
|
|
11212
|
+
for (let i = 0; i < host.childNodes.length; i++) {
|
|
11213
|
+
const childNode = host.childNodes[i];
|
|
11214
|
+
childNode.remove();
|
|
11215
|
+
upgradedCmp.appendChild(childNode);
|
|
11216
|
+
}
|
|
11217
|
+
tempDisableCallbacks.delete(doc);
|
|
11218
|
+
if (proxyElements.has(host)) {
|
|
11219
|
+
proxyElements.set(host, upgradedCmp);
|
|
11220
|
+
}
|
|
11221
|
+
}
|
|
11222
|
+
fireConnectedCallback2(host);
|
|
11223
|
+
});
|
|
11224
|
+
}
|
|
11225
|
+
}
|
|
11226
|
+
get(tagName) {
|
|
11227
|
+
if (this.__registry != null) {
|
|
11228
|
+
const def = this.__registry.get(tagName.toLowerCase());
|
|
11229
|
+
if (def != null) {
|
|
11230
|
+
return def.cstr;
|
|
11231
|
+
}
|
|
11232
|
+
}
|
|
11233
|
+
return void 0;
|
|
11234
|
+
}
|
|
11235
|
+
getName(cstr) {
|
|
11236
|
+
for (const [tagName, def] of this.__registry.entries()) {
|
|
11237
|
+
if (def.cstr === cstr) {
|
|
11238
|
+
return tagName;
|
|
11239
|
+
}
|
|
11240
|
+
}
|
|
11241
|
+
return void 0;
|
|
11242
|
+
}
|
|
11243
|
+
upgrade(_rootNode) {
|
|
11244
|
+
}
|
|
11245
|
+
clear() {
|
|
11246
|
+
if (this.__registry != null) {
|
|
11247
|
+
this.__registry.clear();
|
|
11248
|
+
}
|
|
11249
|
+
if (this.__whenDefined != null) {
|
|
11250
|
+
this.__whenDefined.clear();
|
|
11251
|
+
}
|
|
11252
|
+
}
|
|
11253
|
+
whenDefined(tagName) {
|
|
11254
|
+
tagName = tagName.toLowerCase();
|
|
10257
11255
|
if (this.__registry != null && this.__registry.has(tagName) === true) {
|
|
10258
11256
|
return Promise.resolve(this.__registry.get(tagName).cstr);
|
|
10259
11257
|
}
|
|
@@ -10321,7 +11319,7 @@ function connectNode(ownerDocument, node) {
|
|
|
10321
11319
|
if (ownerDocument != null && node.nodeName.includes("-")) {
|
|
10322
11320
|
const win2 = ownerDocument.defaultView;
|
|
10323
11321
|
if (win2 != null && typeof node.connectedCallback === "function" && node.isConnected) {
|
|
10324
|
-
|
|
11322
|
+
fireConnectedCallback2(node);
|
|
10325
11323
|
}
|
|
10326
11324
|
const shadowRoot = node.shadowRoot;
|
|
10327
11325
|
if (shadowRoot != null) {
|
|
@@ -10339,7 +11337,7 @@ function connectNode(ownerDocument, node) {
|
|
|
10339
11337
|
});
|
|
10340
11338
|
}
|
|
10341
11339
|
}
|
|
10342
|
-
function
|
|
11340
|
+
function fireConnectedCallback2(node) {
|
|
10343
11341
|
if (typeof node.connectedCallback === "function") {
|
|
10344
11342
|
if (tempDisableCallbacks.has(node.ownerDocument) === false) {
|
|
10345
11343
|
try {
|
|
@@ -10389,7 +11387,7 @@ function dataset(elm) {
|
|
|
10389
11387
|
const attr = attributes.item(i);
|
|
10390
11388
|
const nodeName = attr.nodeName;
|
|
10391
11389
|
if (nodeName.startsWith("data-")) {
|
|
10392
|
-
ds[
|
|
11390
|
+
ds[dashToPascalCase2(nodeName)] = attr.nodeValue;
|
|
10393
11391
|
}
|
|
10394
11392
|
}
|
|
10395
11393
|
return new Proxy(ds, {
|
|
@@ -10406,7 +11404,7 @@ function dataset(elm) {
|
|
|
10406
11404
|
function toDataAttribute(str) {
|
|
10407
11405
|
return "data-" + String(str).replace(/([A-Z0-9])/g, (g) => " " + g[0]).trim().replace(/ /g, "-").toLowerCase();
|
|
10408
11406
|
}
|
|
10409
|
-
function
|
|
11407
|
+
function dashToPascalCase2(str) {
|
|
10410
11408
|
str = String(str).slice(5);
|
|
10411
11409
|
return str.split("-").map((segment, index) => {
|
|
10412
11410
|
if (index === 0) {
|
|
@@ -18758,14 +19756,14 @@ var jquery_default = (
|
|
|
18758
19756
|
*
|
|
18759
19757
|
* Date: 2023-12-11T17:55Z
|
|
18760
19758
|
*/
|
|
18761
|
-
function(global2, factory) {
|
|
19759
|
+
(function(global2, factory) {
|
|
18762
19760
|
"use strict";
|
|
18763
19761
|
if (true) {
|
|
18764
19762
|
return factory(global2, true);
|
|
18765
19763
|
} else {
|
|
18766
19764
|
factory(global2);
|
|
18767
19765
|
}
|
|
18768
|
-
}({
|
|
19766
|
+
})({
|
|
18769
19767
|
document: {
|
|
18770
19768
|
createElement() {
|
|
18771
19769
|
return {};
|
|
@@ -20735,10 +21733,10 @@ var MockNode2 = class {
|
|
|
20735
21733
|
insertBefore(newNode, referenceNode) {
|
|
20736
21734
|
if (newNode.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
20737
21735
|
for (let i = 0, ii = newNode.childNodes.length; i < ii; i++) {
|
|
20738
|
-
|
|
21736
|
+
insertBefore2(this, newNode.childNodes[i], referenceNode);
|
|
20739
21737
|
}
|
|
20740
21738
|
} else {
|
|
20741
|
-
|
|
21739
|
+
insertBefore2(this, newNode, referenceNode);
|
|
20742
21740
|
}
|
|
20743
21741
|
return newNode;
|
|
20744
21742
|
}
|
|
@@ -21083,13 +22081,13 @@ var MockElement = class extends MockNode2 {
|
|
|
21083
22081
|
}
|
|
21084
22082
|
insertAdjacentElement(position, elm) {
|
|
21085
22083
|
if (position === "beforebegin" && this.parentNode) {
|
|
21086
|
-
|
|
22084
|
+
insertBefore2(this.parentNode, elm, this);
|
|
21087
22085
|
} else if (position === "afterbegin") {
|
|
21088
22086
|
this.prepend(elm);
|
|
21089
22087
|
} else if (position === "beforeend") {
|
|
21090
22088
|
this.appendChild(elm);
|
|
21091
22089
|
} else if (position === "afterend" && this.parentNode) {
|
|
21092
|
-
|
|
22090
|
+
insertBefore2(this.parentNode, elm, this.nextSibling);
|
|
21093
22091
|
}
|
|
21094
22092
|
return elm;
|
|
21095
22093
|
}
|
|
@@ -21098,7 +22096,7 @@ var MockElement = class extends MockNode2 {
|
|
|
21098
22096
|
if (position === "beforebegin") {
|
|
21099
22097
|
while (frag.childNodes.length > 0) {
|
|
21100
22098
|
if (this.parentNode) {
|
|
21101
|
-
|
|
22099
|
+
insertBefore2(this.parentNode, frag.childNodes[0], this);
|
|
21102
22100
|
}
|
|
21103
22101
|
}
|
|
21104
22102
|
} else if (position === "afterbegin") {
|
|
@@ -21112,7 +22110,7 @@ var MockElement = class extends MockNode2 {
|
|
|
21112
22110
|
} else if (position === "afterend") {
|
|
21113
22111
|
while (frag.childNodes.length > 0) {
|
|
21114
22112
|
if (this.parentNode) {
|
|
21115
|
-
|
|
22113
|
+
insertBefore2(this.parentNode, frag.childNodes[frag.childNodes.length - 1], this.nextSibling);
|
|
21116
22114
|
}
|
|
21117
22115
|
}
|
|
21118
22116
|
}
|
|
@@ -21120,13 +22118,13 @@ var MockElement = class extends MockNode2 {
|
|
|
21120
22118
|
insertAdjacentText(position, text) {
|
|
21121
22119
|
const elm = this.ownerDocument.createTextNode(text);
|
|
21122
22120
|
if (position === "beforebegin" && this.parentNode) {
|
|
21123
|
-
|
|
22121
|
+
insertBefore2(this.parentNode, elm, this);
|
|
21124
22122
|
} else if (position === "afterbegin") {
|
|
21125
22123
|
this.prepend(elm);
|
|
21126
22124
|
} else if (position === "beforeend") {
|
|
21127
22125
|
this.appendChild(elm);
|
|
21128
22126
|
} else if (position === "afterend" && this.parentNode) {
|
|
21129
|
-
|
|
22127
|
+
insertBefore2(this.parentNode, elm, this.nextSibling);
|
|
21130
22128
|
}
|
|
21131
22129
|
}
|
|
21132
22130
|
hasAttribute(attrName) {
|
|
@@ -21541,7 +22539,7 @@ function resetElement(elm) {
|
|
|
21541
22539
|
delete elm.__shadowRoot;
|
|
21542
22540
|
delete elm.__style;
|
|
21543
22541
|
}
|
|
21544
|
-
function
|
|
22542
|
+
function insertBefore2(parentNode, newNode, referenceNode) {
|
|
21545
22543
|
if (newNode !== referenceNode) {
|
|
21546
22544
|
newNode.remove();
|
|
21547
22545
|
newNode.parentNode = parentNode;
|
|
@@ -23949,672 +24947,138 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
|
|
|
23949
24947
|
}
|
|
23950
24948
|
createElement(tagName) {
|
|
23951
24949
|
if (tagName === "#document" /* DOCUMENT_NODE */) {
|
|
23952
|
-
const doc = new _MockDocument(false);
|
|
23953
|
-
doc.nodeName = tagName;
|
|
23954
|
-
doc.parentNode = null;
|
|
23955
|
-
return doc;
|
|
23956
|
-
}
|
|
23957
|
-
return createElement(this, tagName);
|
|
23958
|
-
}
|
|
23959
|
-
createElementNS(namespaceURI, tagName) {
|
|
23960
|
-
const elmNs = createElementNS(this, namespaceURI, tagName);
|
|
23961
|
-
return elmNs;
|
|
23962
|
-
}
|
|
23963
|
-
createTextNode(text) {
|
|
23964
|
-
return new MockTextNode(this, text);
|
|
23965
|
-
}
|
|
23966
|
-
createDocumentFragment() {
|
|
23967
|
-
return new MockDocumentFragment(this);
|
|
23968
|
-
}
|
|
23969
|
-
createDocumentTypeNode() {
|
|
23970
|
-
return new MockDocumentTypeNode(this);
|
|
23971
|
-
}
|
|
23972
|
-
getElementById(id) {
|
|
23973
|
-
return getElementById(this, id);
|
|
23974
|
-
}
|
|
23975
|
-
getElementsByName(elmName) {
|
|
23976
|
-
return getElementsByName(this, elmName.toLowerCase());
|
|
23977
|
-
}
|
|
23978
|
-
get title() {
|
|
23979
|
-
const title = this.head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
23980
|
-
if (title != null && typeof title.textContent === "string") {
|
|
23981
|
-
return title.textContent.trim();
|
|
23982
|
-
}
|
|
23983
|
-
return "";
|
|
23984
|
-
}
|
|
23985
|
-
set title(value) {
|
|
23986
|
-
const head = this.head;
|
|
23987
|
-
let title = head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
23988
|
-
if (title == null) {
|
|
23989
|
-
title = this.createElement("title");
|
|
23990
|
-
head.appendChild(title);
|
|
23991
|
-
}
|
|
23992
|
-
title.textContent = value;
|
|
23993
|
-
}
|
|
23994
|
-
};
|
|
23995
|
-
function resetDocument(doc) {
|
|
23996
|
-
if (doc != null) {
|
|
23997
|
-
resetEventListeners(doc);
|
|
23998
|
-
const documentElement = doc.documentElement;
|
|
23999
|
-
if (documentElement != null) {
|
|
24000
|
-
resetElement(documentElement);
|
|
24001
|
-
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
24002
|
-
const childNode = documentElement.childNodes[i];
|
|
24003
|
-
resetElement(childNode);
|
|
24004
|
-
childNode.childNodes.length = 0;
|
|
24005
|
-
}
|
|
24006
|
-
}
|
|
24007
|
-
for (const key in doc) {
|
|
24008
|
-
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
24009
|
-
delete doc[key];
|
|
24010
|
-
}
|
|
24011
|
-
}
|
|
24012
|
-
try {
|
|
24013
|
-
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
24014
|
-
} catch (e) {
|
|
24015
|
-
}
|
|
24016
|
-
try {
|
|
24017
|
-
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
24018
|
-
} catch (e) {
|
|
24019
|
-
}
|
|
24020
|
-
try {
|
|
24021
|
-
doc.cookie = "";
|
|
24022
|
-
} catch (e) {
|
|
24023
|
-
}
|
|
24024
|
-
try {
|
|
24025
|
-
doc.referrer = "";
|
|
24026
|
-
} catch (e) {
|
|
24027
|
-
}
|
|
24028
|
-
}
|
|
24029
|
-
}
|
|
24030
|
-
var DOC_KEY_KEEPERS = /* @__PURE__ */ new Set([
|
|
24031
|
-
"nodeName",
|
|
24032
|
-
"nodeType",
|
|
24033
|
-
"nodeValue",
|
|
24034
|
-
"ownerDocument",
|
|
24035
|
-
"parentNode",
|
|
24036
|
-
"childNodes",
|
|
24037
|
-
"_shadowRoot"
|
|
24038
|
-
]);
|
|
24039
|
-
function getElementById(elm, id) {
|
|
24040
|
-
const children = elm.children;
|
|
24041
|
-
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
24042
|
-
const childElm = children[i];
|
|
24043
|
-
if (childElm.id === id) {
|
|
24044
|
-
return childElm;
|
|
24045
|
-
}
|
|
24046
|
-
const childElmFound = getElementById(childElm, id);
|
|
24047
|
-
if (childElmFound != null) {
|
|
24048
|
-
return childElmFound;
|
|
24049
|
-
}
|
|
24050
|
-
}
|
|
24051
|
-
return null;
|
|
24052
|
-
}
|
|
24053
|
-
function getElementsByName(elm, elmName, foundElms = []) {
|
|
24054
|
-
const children = elm.children;
|
|
24055
|
-
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
24056
|
-
const childElm = children[i];
|
|
24057
|
-
if (childElm.name && childElm.name.toLowerCase() === elmName) {
|
|
24058
|
-
foundElms.push(childElm);
|
|
24059
|
-
}
|
|
24060
|
-
getElementsByName(childElm, elmName, foundElms);
|
|
24061
|
-
}
|
|
24062
|
-
return foundElms;
|
|
24063
|
-
}
|
|
24064
|
-
function setOwnerDocument(elm, ownerDocument) {
|
|
24065
|
-
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
24066
|
-
elm.childNodes[i].ownerDocument = ownerDocument;
|
|
24067
|
-
if (elm.childNodes[i].nodeType === 1 /* ELEMENT_NODE */) {
|
|
24068
|
-
setOwnerDocument(elm.childNodes[i], ownerDocument);
|
|
24069
|
-
}
|
|
24070
|
-
}
|
|
24071
|
-
}
|
|
24072
|
-
|
|
24073
|
-
// src/hydrate/runner/create-window.ts
|
|
24074
|
-
var templateWindows = /* @__PURE__ */ new Map();
|
|
24075
|
-
function createWindowFromHtml(templateHtml, uniqueId) {
|
|
24076
|
-
let templateWindow = templateWindows.get(uniqueId);
|
|
24077
|
-
if (templateWindow == null) {
|
|
24078
|
-
templateWindow = new MockWindow(templateHtml);
|
|
24079
|
-
templateWindows.set(uniqueId, templateWindow);
|
|
24080
|
-
}
|
|
24081
|
-
const win2 = cloneWindow(templateWindow);
|
|
24082
|
-
return win2;
|
|
24083
|
-
}
|
|
24084
|
-
var Build = {
|
|
24085
|
-
isDev: BUILD.isDev ? true : false,
|
|
24086
|
-
isBrowser: true,
|
|
24087
|
-
isServer: false,
|
|
24088
|
-
isTesting: BUILD.isTesting ? true : false
|
|
24089
|
-
};
|
|
24090
|
-
|
|
24091
|
-
// src/utils/constants.ts
|
|
24092
|
-
var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
|
|
24093
|
-
PrimitiveType2["Undefined"] = "undefined";
|
|
24094
|
-
PrimitiveType2["Null"] = "null";
|
|
24095
|
-
PrimitiveType2["String"] = "string";
|
|
24096
|
-
PrimitiveType2["Number"] = "number";
|
|
24097
|
-
PrimitiveType2["SpecialNumber"] = "number";
|
|
24098
|
-
PrimitiveType2["Boolean"] = "boolean";
|
|
24099
|
-
PrimitiveType2["BigInt"] = "bigint";
|
|
24100
|
-
return PrimitiveType2;
|
|
24101
|
-
})(PrimitiveType || {});
|
|
24102
|
-
var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
24103
|
-
NonPrimitiveType2["Array"] = "array";
|
|
24104
|
-
NonPrimitiveType2["Date"] = "date";
|
|
24105
|
-
NonPrimitiveType2["Map"] = "map";
|
|
24106
|
-
NonPrimitiveType2["Object"] = "object";
|
|
24107
|
-
NonPrimitiveType2["RegularExpression"] = "regexp";
|
|
24108
|
-
NonPrimitiveType2["Set"] = "set";
|
|
24109
|
-
NonPrimitiveType2["Channel"] = "channel";
|
|
24110
|
-
NonPrimitiveType2["Symbol"] = "symbol";
|
|
24111
|
-
return NonPrimitiveType2;
|
|
24112
|
-
})(NonPrimitiveType || {});
|
|
24113
|
-
var TYPE_CONSTANT = "type";
|
|
24114
|
-
var VALUE_CONSTANT = "value";
|
|
24115
|
-
var SERIALIZED_PREFIX = "serialized:";
|
|
24116
|
-
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
24117
|
-
"%cstencil",
|
|
24118
|
-
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
24119
|
-
];
|
|
24120
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
24121
|
-
var H = win.HTMLElement || class {
|
|
24122
|
-
};
|
|
24123
|
-
var supportsShadow = BUILD.shadowDom;
|
|
24124
|
-
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
24125
|
-
try {
|
|
24126
|
-
new CSSStyleSheet();
|
|
24127
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
24128
|
-
} catch (e) {
|
|
24129
|
-
}
|
|
24130
|
-
return false;
|
|
24131
|
-
})() : false;
|
|
24132
|
-
|
|
24133
|
-
// src/utils/helpers.ts
|
|
24134
|
-
var isString = (v) => typeof v === "string";
|
|
24135
|
-
|
|
24136
|
-
// src/utils/local-value.ts
|
|
24137
|
-
var LocalValue = class _LocalValue {
|
|
24138
|
-
constructor(type, value) {
|
|
24139
|
-
if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
|
|
24140
|
-
this.type = type;
|
|
24141
|
-
} else {
|
|
24142
|
-
this.type = type;
|
|
24143
|
-
this.value = value;
|
|
24144
|
-
}
|
|
24145
|
-
}
|
|
24146
|
-
/**
|
|
24147
|
-
* Creates a new LocalValue object with a string value.
|
|
24148
|
-
*
|
|
24149
|
-
* @param {string} value - The string value to be stored in the LocalValue object.
|
|
24150
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24151
|
-
*/
|
|
24152
|
-
static createStringValue(value) {
|
|
24153
|
-
return new _LocalValue("string" /* String */, value);
|
|
24154
|
-
}
|
|
24155
|
-
/**
|
|
24156
|
-
* Creates a new LocalValue object with a number value.
|
|
24157
|
-
*
|
|
24158
|
-
* @param {number} value - The number value.
|
|
24159
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24160
|
-
*/
|
|
24161
|
-
static createNumberValue(value) {
|
|
24162
|
-
return new _LocalValue("number" /* Number */, value);
|
|
24163
|
-
}
|
|
24164
|
-
/**
|
|
24165
|
-
* Creates a new LocalValue object with a special number value.
|
|
24166
|
-
*
|
|
24167
|
-
* @param {number} value - The value of the special number.
|
|
24168
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24169
|
-
*/
|
|
24170
|
-
static createSpecialNumberValue(value) {
|
|
24171
|
-
if (Number.isNaN(value)) {
|
|
24172
|
-
return new _LocalValue("number" /* SpecialNumber */, "NaN");
|
|
24173
|
-
}
|
|
24174
|
-
if (Object.is(value, -0)) {
|
|
24175
|
-
return new _LocalValue("number" /* SpecialNumber */, "-0");
|
|
24176
|
-
}
|
|
24177
|
-
if (value === Infinity) {
|
|
24178
|
-
return new _LocalValue("number" /* SpecialNumber */, "Infinity");
|
|
24179
|
-
}
|
|
24180
|
-
if (value === -Infinity) {
|
|
24181
|
-
return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
|
|
24182
|
-
}
|
|
24183
|
-
return new _LocalValue("number" /* SpecialNumber */, value);
|
|
24184
|
-
}
|
|
24185
|
-
/**
|
|
24186
|
-
* Creates a new LocalValue object with an undefined value.
|
|
24187
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24188
|
-
*/
|
|
24189
|
-
static createUndefinedValue() {
|
|
24190
|
-
return new _LocalValue("undefined" /* Undefined */);
|
|
24191
|
-
}
|
|
24192
|
-
/**
|
|
24193
|
-
* Creates a new LocalValue object with a null value.
|
|
24194
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24195
|
-
*/
|
|
24196
|
-
static createNullValue() {
|
|
24197
|
-
return new _LocalValue("null" /* Null */);
|
|
24198
|
-
}
|
|
24199
|
-
/**
|
|
24200
|
-
* Creates a new LocalValue object with a boolean value.
|
|
24201
|
-
*
|
|
24202
|
-
* @param {boolean} value - The boolean value.
|
|
24203
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24204
|
-
*/
|
|
24205
|
-
static createBooleanValue(value) {
|
|
24206
|
-
return new _LocalValue("boolean" /* Boolean */, value);
|
|
24207
|
-
}
|
|
24208
|
-
/**
|
|
24209
|
-
* Creates a new LocalValue object with a BigInt value.
|
|
24210
|
-
*
|
|
24211
|
-
* @param {BigInt} value - The BigInt value.
|
|
24212
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24213
|
-
*/
|
|
24214
|
-
static createBigIntValue(value) {
|
|
24215
|
-
return new _LocalValue("bigint" /* BigInt */, value.toString());
|
|
24216
|
-
}
|
|
24217
|
-
/**
|
|
24218
|
-
* Creates a new LocalValue object with an array.
|
|
24219
|
-
*
|
|
24220
|
-
* @param {Array} value - The array.
|
|
24221
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24222
|
-
*/
|
|
24223
|
-
static createArrayValue(value) {
|
|
24224
|
-
return new _LocalValue("array" /* Array */, value);
|
|
24225
|
-
}
|
|
24226
|
-
/**
|
|
24227
|
-
* Creates a new LocalValue object with date value.
|
|
24228
|
-
*
|
|
24229
|
-
* @param {string} value - The date.
|
|
24230
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24231
|
-
*/
|
|
24232
|
-
static createDateValue(value) {
|
|
24233
|
-
return new _LocalValue("date" /* Date */, value);
|
|
24234
|
-
}
|
|
24235
|
-
/**
|
|
24236
|
-
* Creates a new LocalValue object of map value.
|
|
24237
|
-
* @param {Map} map - The map.
|
|
24238
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24239
|
-
*/
|
|
24240
|
-
static createMapValue(map2) {
|
|
24241
|
-
const value = [];
|
|
24242
|
-
Array.from(map2.entries()).forEach(([key, val]) => {
|
|
24243
|
-
value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
|
|
24244
|
-
});
|
|
24245
|
-
return new _LocalValue("map" /* Map */, value);
|
|
24246
|
-
}
|
|
24247
|
-
/**
|
|
24248
|
-
* Creates a new LocalValue object from the passed object.
|
|
24249
|
-
*
|
|
24250
|
-
* @param object the object to create a LocalValue from
|
|
24251
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24252
|
-
*/
|
|
24253
|
-
static createObjectValue(object) {
|
|
24254
|
-
const value = [];
|
|
24255
|
-
Object.entries(object).forEach(([key, val]) => {
|
|
24256
|
-
value.push([key, _LocalValue.getArgument(val)]);
|
|
24257
|
-
});
|
|
24258
|
-
return new _LocalValue("object" /* Object */, value);
|
|
24259
|
-
}
|
|
24260
|
-
/**
|
|
24261
|
-
* Creates a new LocalValue object of regular expression value.
|
|
24262
|
-
*
|
|
24263
|
-
* @param {string} value - The value of the regular expression.
|
|
24264
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24265
|
-
*/
|
|
24266
|
-
static createRegularExpressionValue(value) {
|
|
24267
|
-
return new _LocalValue("regexp" /* RegularExpression */, value);
|
|
24268
|
-
}
|
|
24269
|
-
/**
|
|
24270
|
-
* Creates a new LocalValue object with the specified value.
|
|
24271
|
-
* @param {Set} value - The value to be set.
|
|
24272
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24273
|
-
*/
|
|
24274
|
-
static createSetValue(value) {
|
|
24275
|
-
return new _LocalValue("set" /* Set */, value);
|
|
24276
|
-
}
|
|
24277
|
-
/**
|
|
24278
|
-
* Creates a new LocalValue object with the given channel value
|
|
24279
|
-
*
|
|
24280
|
-
* @param {ChannelValue} value - The channel value.
|
|
24281
|
-
* @returns {LocalValue} - The created LocalValue object.
|
|
24282
|
-
*/
|
|
24283
|
-
static createChannelValue(value) {
|
|
24284
|
-
return new _LocalValue("channel" /* Channel */, value);
|
|
24285
|
-
}
|
|
24286
|
-
/**
|
|
24287
|
-
* Creates a new LocalValue object with a Symbol value.
|
|
24288
|
-
*
|
|
24289
|
-
* @param {Symbol} symbol - The Symbol value
|
|
24290
|
-
* @returns {LocalValue} - The created LocalValue object
|
|
24291
|
-
*/
|
|
24292
|
-
static createSymbolValue(symbol) {
|
|
24293
|
-
const description = symbol.description || "Symbol()";
|
|
24294
|
-
return new _LocalValue("symbol" /* Symbol */, description);
|
|
24295
|
-
}
|
|
24296
|
-
static getArgument(argument) {
|
|
24297
|
-
const type = typeof argument;
|
|
24298
|
-
switch (type) {
|
|
24299
|
-
case "string" /* String */:
|
|
24300
|
-
return _LocalValue.createStringValue(argument);
|
|
24301
|
-
case "number" /* Number */:
|
|
24302
|
-
if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
|
|
24303
|
-
return _LocalValue.createSpecialNumberValue(argument);
|
|
24304
|
-
}
|
|
24305
|
-
return _LocalValue.createNumberValue(argument);
|
|
24306
|
-
case "boolean" /* Boolean */:
|
|
24307
|
-
return _LocalValue.createBooleanValue(argument);
|
|
24308
|
-
case "bigint" /* BigInt */:
|
|
24309
|
-
return _LocalValue.createBigIntValue(argument);
|
|
24310
|
-
case "undefined" /* Undefined */:
|
|
24311
|
-
return _LocalValue.createUndefinedValue();
|
|
24312
|
-
case "symbol" /* Symbol */:
|
|
24313
|
-
return _LocalValue.createSymbolValue(argument);
|
|
24314
|
-
case "object" /* Object */:
|
|
24315
|
-
if (argument === null) {
|
|
24316
|
-
return _LocalValue.createNullValue();
|
|
24317
|
-
}
|
|
24318
|
-
if (argument instanceof Date) {
|
|
24319
|
-
return _LocalValue.createDateValue(argument);
|
|
24320
|
-
}
|
|
24321
|
-
if (argument instanceof Map) {
|
|
24322
|
-
const map2 = [];
|
|
24323
|
-
argument.forEach((value, key) => {
|
|
24324
|
-
const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
|
|
24325
|
-
const objectValue = _LocalValue.getArgument(value);
|
|
24326
|
-
map2.push([objectKey, objectValue]);
|
|
24327
|
-
});
|
|
24328
|
-
return _LocalValue.createMapValue(argument);
|
|
24329
|
-
}
|
|
24330
|
-
if (argument instanceof Set) {
|
|
24331
|
-
const set = [];
|
|
24332
|
-
argument.forEach((value) => {
|
|
24333
|
-
set.push(_LocalValue.getArgument(value));
|
|
24334
|
-
});
|
|
24335
|
-
return _LocalValue.createSetValue(set);
|
|
24336
|
-
}
|
|
24337
|
-
if (argument instanceof Array) {
|
|
24338
|
-
const arr = [];
|
|
24339
|
-
argument.forEach((value) => {
|
|
24340
|
-
arr.push(_LocalValue.getArgument(value));
|
|
24341
|
-
});
|
|
24342
|
-
return _LocalValue.createArrayValue(arr);
|
|
24343
|
-
}
|
|
24344
|
-
if (argument instanceof RegExp) {
|
|
24345
|
-
return _LocalValue.createRegularExpressionValue({
|
|
24346
|
-
pattern: argument.source,
|
|
24347
|
-
flags: argument.flags
|
|
24348
|
-
});
|
|
24349
|
-
}
|
|
24350
|
-
return _LocalValue.createObjectValue(argument);
|
|
24351
|
-
}
|
|
24352
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
24353
|
-
}
|
|
24354
|
-
asMap() {
|
|
24355
|
-
return {
|
|
24356
|
-
[TYPE_CONSTANT]: this.type,
|
|
24357
|
-
...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
|
|
24358
|
-
};
|
|
24359
|
-
}
|
|
24360
|
-
};
|
|
24361
|
-
|
|
24362
|
-
// src/utils/message-utils.ts
|
|
24363
|
-
var catchError = (diagnostics, err2, msg) => {
|
|
24364
|
-
const diagnostic = {
|
|
24365
|
-
level: "error",
|
|
24366
|
-
type: "build",
|
|
24367
|
-
header: "Build Error",
|
|
24368
|
-
messageText: "build error",
|
|
24369
|
-
lines: []
|
|
24370
|
-
};
|
|
24371
|
-
if (isString(msg)) {
|
|
24372
|
-
diagnostic.messageText = msg.length ? msg : "UNKNOWN ERROR";
|
|
24373
|
-
} else if (err2 != null) {
|
|
24374
|
-
if (err2.stack != null) {
|
|
24375
|
-
diagnostic.messageText = err2.stack.toString();
|
|
24376
|
-
} else {
|
|
24377
|
-
if (err2.message != null) {
|
|
24378
|
-
diagnostic.messageText = err2.message.length ? err2.message : "UNKNOWN ERROR";
|
|
24379
|
-
} else {
|
|
24380
|
-
diagnostic.messageText = err2.toString();
|
|
24381
|
-
}
|
|
24382
|
-
}
|
|
24383
|
-
}
|
|
24384
|
-
if (diagnostics != null && !shouldIgnoreError(diagnostic.messageText)) {
|
|
24385
|
-
diagnostics.push(diagnostic);
|
|
24386
|
-
}
|
|
24387
|
-
return diagnostic;
|
|
24388
|
-
};
|
|
24389
|
-
var hasError = (diagnostics) => {
|
|
24390
|
-
if (diagnostics == null || diagnostics.length === 0) {
|
|
24391
|
-
return false;
|
|
24392
|
-
}
|
|
24393
|
-
return diagnostics.some((d) => d.level === "error" && d.type !== "runtime");
|
|
24394
|
-
};
|
|
24395
|
-
var shouldIgnoreError = (msg) => {
|
|
24396
|
-
return msg === TASK_CANCELED_MSG;
|
|
24397
|
-
};
|
|
24398
|
-
var TASK_CANCELED_MSG = `task canceled`;
|
|
24399
|
-
|
|
24400
|
-
// src/utils/regular-expression.ts
|
|
24401
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
24402
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
24403
|
-
};
|
|
24404
|
-
|
|
24405
|
-
// src/utils/remote-value.ts
|
|
24406
|
-
var RemoteValue = class _RemoteValue {
|
|
24407
|
-
/**
|
|
24408
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
24409
|
-
*
|
|
24410
|
-
* @param serialized The serialized LocalValue object
|
|
24411
|
-
* @returns The original JavaScript value/object
|
|
24412
|
-
*/
|
|
24413
|
-
static fromLocalValue(serialized) {
|
|
24414
|
-
const type = serialized[TYPE_CONSTANT];
|
|
24415
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
24416
|
-
switch (type) {
|
|
24417
|
-
case "string" /* String */:
|
|
24418
|
-
return value;
|
|
24419
|
-
case "boolean" /* Boolean */:
|
|
24420
|
-
return value;
|
|
24421
|
-
case "bigint" /* BigInt */:
|
|
24422
|
-
return BigInt(value);
|
|
24423
|
-
case "undefined" /* Undefined */:
|
|
24424
|
-
return void 0;
|
|
24425
|
-
case "null" /* Null */:
|
|
24426
|
-
return null;
|
|
24427
|
-
case "number" /* Number */:
|
|
24428
|
-
if (value === "NaN") return NaN;
|
|
24429
|
-
if (value === "-0") return -0;
|
|
24430
|
-
if (value === "Infinity") return Infinity;
|
|
24431
|
-
if (value === "-Infinity") return -Infinity;
|
|
24432
|
-
return value;
|
|
24433
|
-
case "array" /* Array */:
|
|
24434
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
24435
|
-
case "date" /* Date */:
|
|
24436
|
-
return new Date(value);
|
|
24437
|
-
case "map" /* Map */:
|
|
24438
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
24439
|
-
for (const [key, val] of value) {
|
|
24440
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
24441
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
24442
|
-
map2.set(deserializedKey, deserializedValue);
|
|
24443
|
-
}
|
|
24444
|
-
return map2;
|
|
24445
|
-
case "object" /* Object */:
|
|
24446
|
-
const obj = {};
|
|
24447
|
-
for (const [key, val] of value) {
|
|
24448
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
24449
|
-
}
|
|
24450
|
-
return obj;
|
|
24451
|
-
case "regexp" /* RegularExpression */:
|
|
24452
|
-
const { pattern, flags } = value;
|
|
24453
|
-
return new RegExp(pattern, flags);
|
|
24454
|
-
case "set" /* Set */:
|
|
24455
|
-
const set = /* @__PURE__ */ new Set();
|
|
24456
|
-
for (const item of value) {
|
|
24457
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
24458
|
-
}
|
|
24459
|
-
return set;
|
|
24460
|
-
case "symbol" /* Symbol */:
|
|
24461
|
-
return Symbol(value);
|
|
24462
|
-
default:
|
|
24463
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
24950
|
+
const doc = new _MockDocument(false);
|
|
24951
|
+
doc.nodeName = tagName;
|
|
24952
|
+
doc.parentNode = null;
|
|
24953
|
+
return doc;
|
|
24464
24954
|
}
|
|
24955
|
+
return createElement(this, tagName);
|
|
24465
24956
|
}
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24469
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
24470
|
-
* @returns Array of deserialized JavaScript values
|
|
24471
|
-
*/
|
|
24472
|
-
static fromLocalValueArray(serializedValues) {
|
|
24473
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
24957
|
+
createElementNS(namespaceURI, tagName) {
|
|
24958
|
+
const elmNs = createElementNS(this, namespaceURI, tagName);
|
|
24959
|
+
return elmNs;
|
|
24474
24960
|
}
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24961
|
+
createTextNode(text) {
|
|
24962
|
+
return new MockTextNode(this, text);
|
|
24963
|
+
}
|
|
24964
|
+
createDocumentFragment() {
|
|
24965
|
+
return new MockDocumentFragment(this);
|
|
24966
|
+
}
|
|
24967
|
+
createDocumentTypeNode() {
|
|
24968
|
+
return new MockDocumentTypeNode(this);
|
|
24969
|
+
}
|
|
24970
|
+
getElementById(id) {
|
|
24971
|
+
return getElementById(this, id);
|
|
24972
|
+
}
|
|
24973
|
+
getElementsByName(elmName) {
|
|
24974
|
+
return getElementsByName(this, elmName.toLowerCase());
|
|
24975
|
+
}
|
|
24976
|
+
get title() {
|
|
24977
|
+
const title = this.head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
24978
|
+
if (title != null && typeof title.textContent === "string") {
|
|
24979
|
+
return title.textContent.trim();
|
|
24492
24980
|
}
|
|
24493
|
-
|
|
24494
|
-
|
|
24981
|
+
return "";
|
|
24982
|
+
}
|
|
24983
|
+
set title(value) {
|
|
24984
|
+
const head = this.head;
|
|
24985
|
+
let title = head.childNodes.find((elm) => elm.nodeName === "TITLE");
|
|
24986
|
+
if (title == null) {
|
|
24987
|
+
title = this.createElement("title");
|
|
24988
|
+
head.appendChild(title);
|
|
24495
24989
|
}
|
|
24496
|
-
|
|
24990
|
+
title.textContent = value;
|
|
24497
24991
|
}
|
|
24498
24992
|
};
|
|
24499
|
-
|
|
24500
|
-
|
|
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
|
-
|
|
24993
|
+
function resetDocument(doc) {
|
|
24994
|
+
if (doc != null) {
|
|
24995
|
+
resetEventListeners(doc);
|
|
24996
|
+
const documentElement = doc.documentElement;
|
|
24997
|
+
if (documentElement != null) {
|
|
24998
|
+
resetElement(documentElement);
|
|
24999
|
+
for (let i = 0, ii = documentElement.childNodes.length; i < ii; i++) {
|
|
25000
|
+
const childNode = documentElement.childNodes[i];
|
|
25001
|
+
resetElement(childNode);
|
|
25002
|
+
childNode.childNodes.length = 0;
|
|
25003
|
+
}
|
|
25004
|
+
}
|
|
25005
|
+
for (const key in doc) {
|
|
25006
|
+
if (doc.hasOwnProperty(key) && !DOC_KEY_KEEPERS.has(key)) {
|
|
25007
|
+
delete doc[key];
|
|
25008
|
+
}
|
|
25009
|
+
}
|
|
25010
|
+
try {
|
|
25011
|
+
doc.nodeName = "#document" /* DOCUMENT_NODE */;
|
|
25012
|
+
} catch (e) {
|
|
25013
|
+
}
|
|
25014
|
+
try {
|
|
25015
|
+
doc.nodeType = 9 /* DOCUMENT_NODE */;
|
|
25016
|
+
} catch (e) {
|
|
25017
|
+
}
|
|
25018
|
+
try {
|
|
25019
|
+
doc.cookie = "";
|
|
25020
|
+
} catch (e) {
|
|
25021
|
+
}
|
|
25022
|
+
try {
|
|
25023
|
+
doc.referrer = "";
|
|
25024
|
+
} catch (e) {
|
|
24526
25025
|
}
|
|
24527
25026
|
}
|
|
24528
|
-
if (result.isErr) {
|
|
24529
|
-
const value = result.value;
|
|
24530
|
-
return err(value);
|
|
24531
|
-
}
|
|
24532
|
-
throw "should never get here";
|
|
24533
25027
|
}
|
|
24534
|
-
var
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
25028
|
+
var DOC_KEY_KEEPERS = /* @__PURE__ */ new Set([
|
|
25029
|
+
"nodeName",
|
|
25030
|
+
"nodeType",
|
|
25031
|
+
"nodeValue",
|
|
25032
|
+
"ownerDocument",
|
|
25033
|
+
"parentNode",
|
|
25034
|
+
"childNodes",
|
|
25035
|
+
"_shadowRoot"
|
|
25036
|
+
]);
|
|
25037
|
+
function getElementById(elm, id) {
|
|
25038
|
+
const children = elm.children;
|
|
25039
|
+
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
25040
|
+
const childElm = children[i];
|
|
25041
|
+
if (childElm.id === id) {
|
|
25042
|
+
return childElm;
|
|
25043
|
+
}
|
|
25044
|
+
const childElmFound = getElementById(childElm, id);
|
|
25045
|
+
if (childElmFound != null) {
|
|
25046
|
+
return childElmFound;
|
|
25047
|
+
}
|
|
24546
25048
|
}
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
25049
|
+
return null;
|
|
25050
|
+
}
|
|
25051
|
+
function getElementsByName(elm, elmName, foundElms = []) {
|
|
25052
|
+
const children = elm.children;
|
|
25053
|
+
for (let i = 0, ii = children.length; i < ii; i++) {
|
|
25054
|
+
const childElm = children[i];
|
|
25055
|
+
if (childElm.name && childElm.name.toLowerCase() === elmName) {
|
|
25056
|
+
foundElms.push(childElm);
|
|
25057
|
+
}
|
|
25058
|
+
getElementsByName(childElm, elmName, foundElms);
|
|
24553
25059
|
}
|
|
24554
|
-
|
|
24555
|
-
return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
|
|
25060
|
+
return foundElms;
|
|
24556
25061
|
}
|
|
24557
|
-
function
|
|
24558
|
-
|
|
24559
|
-
|
|
25062
|
+
function setOwnerDocument(elm, ownerDocument) {
|
|
25063
|
+
for (let i = 0, ii = elm.childNodes.length; i < ii; i++) {
|
|
25064
|
+
elm.childNodes[i].ownerDocument = ownerDocument;
|
|
25065
|
+
if (elm.childNodes[i].nodeType === 1 /* ELEMENT_NODE */) {
|
|
25066
|
+
setOwnerDocument(elm.childNodes[i], ownerDocument);
|
|
25067
|
+
}
|
|
24560
25068
|
}
|
|
24561
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
24562
25069
|
}
|
|
24563
25070
|
|
|
24564
|
-
// src/
|
|
24565
|
-
var
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
);
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
);
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
);
|
|
24576
|
-
var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") || p.endsWith(".cjs"));
|
|
24577
|
-
|
|
24578
|
-
// src/utils/shadow-css.ts
|
|
24579
|
-
/**
|
|
24580
|
-
* @license
|
|
24581
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
24582
|
-
*
|
|
24583
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
24584
|
-
* found in the LICENSE file at https://angular.io/license
|
|
24585
|
-
*
|
|
24586
|
-
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
24587
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
24588
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
24589
|
-
*/
|
|
24590
|
-
var _polyfillHost = "-shadowcsshost";
|
|
24591
|
-
var _polyfillSlotted = "-shadowcssslotted";
|
|
24592
|
-
var _polyfillHostContext = "-shadowcsscontext";
|
|
24593
|
-
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
24594
|
-
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
24595
|
-
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
24596
|
-
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
24597
|
-
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
24598
|
-
var createSupportsRuleRe = (selector) => {
|
|
24599
|
-
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
24600
|
-
return new RegExp(
|
|
24601
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
24602
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
24603
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
24604
|
-
"g"
|
|
24605
|
-
);
|
|
24606
|
-
};
|
|
24607
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
24608
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
24609
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
24610
|
-
|
|
24611
|
-
// src/runtime/mode.ts
|
|
24612
|
-
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
24613
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
24614
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
24615
|
-
var baseClass = BUILD.lazyLoad ? class {
|
|
24616
|
-
} : globalThis.HTMLElement || class {
|
|
24617
|
-
};
|
|
25071
|
+
// src/hydrate/runner/create-window.ts
|
|
25072
|
+
var templateWindows = /* @__PURE__ */ new Map();
|
|
25073
|
+
function createWindowFromHtml(templateHtml, uniqueId) {
|
|
25074
|
+
let templateWindow = templateWindows.get(uniqueId);
|
|
25075
|
+
if (templateWindow == null) {
|
|
25076
|
+
templateWindow = new MockWindow(templateHtml);
|
|
25077
|
+
templateWindows.set(uniqueId, templateWindow);
|
|
25078
|
+
}
|
|
25079
|
+
const win2 = cloneWindow(templateWindow);
|
|
25080
|
+
return win2;
|
|
25081
|
+
}
|
|
24618
25082
|
|
|
24619
25083
|
// src/compiler/html/canonical-link.ts
|
|
24620
25084
|
var updateCanonicalLink = (doc, href) => {
|
|
@@ -25997,4 +26461,13 @@ function removeScripts(elm) {
|
|
|
25997
26461
|
}
|
|
25998
26462
|
}
|
|
25999
26463
|
|
|
26000
|
-
|
|
26464
|
+
// src/hydrate/runner/index.ts
|
|
26465
|
+
var everywhere;
|
|
26466
|
+
try {
|
|
26467
|
+
everywhere = global || globalThis;
|
|
26468
|
+
} catch (e) {
|
|
26469
|
+
everywhere = window || globalThis;
|
|
26470
|
+
}
|
|
26471
|
+
everywhere.tagTransform = transformTag;
|
|
26472
|
+
|
|
26473
|
+
export { createWindowFromHtml, deserializeProperty, hydrateDocument, renderToString, serializeDocumentToString, serializeProperty, setTagTransformer, streamToString, transformTag };
|