@threadlabs/looma 0.2.5 → 0.2.6
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/chunk-3K45IWIJ.js +4733 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-UHHA4WT5.js +2916 -0
- package/dist/declarative-generated.cjs +135 -0
- package/dist/declarative-generated.d.cts +10 -0
- package/dist/declarative-generated.d.ts +10 -0
- package/dist/declarative-generated.js +111 -0
- package/dist/declarative.cjs +2944 -0
- package/dist/declarative.d.cts +27 -0
- package/dist/declarative.d.ts +27 -0
- package/dist/declarative.js +13 -0
- package/dist/index.cjs +7480 -6457
- package/dist/index.d.cts +4 -58
- package/dist/index.d.ts +4 -58
- package/dist/index.js +15 -27
- package/dist/loader.cjs +7654 -0
- package/dist/loader.d.cts +4 -0
- package/dist/loader.d.ts +4 -0
- package/dist/loader.js +16 -0
- package/dist/valibot.cjs +31 -0
- package/dist/valibot.d.cts +10 -0
- package/dist/valibot.d.ts +1 -43
- package/dist/valibot.js +2 -0
- package/dist/{types/field/validation.d.ts → validation-bxcou-l-.d.cts} +13 -11
- package/dist/validation-bxcou-l-.d.ts +58 -0
- package/editor/{chunk-B5WVJOPV.js → chunk-BXICJBWS.js} +118 -8
- package/editor/{chunk-ZOUKEZ77.js → chunk-JK53ENSG.js} +8 -21
- package/editor/chunk-WI7ZA44X.js +2558 -0
- package/editor/extensions/index.d.ts +11 -2
- package/editor/extensions/index.js +9 -7
- package/editor/index.d.ts +1 -1
- package/editor/index.js +10 -8
- package/editor/ui.js +2 -2
- package/editor.css +32 -0
- package/layout/index.cjs +466 -400
- package/layout/index.d.cts +1 -2
- package/layout/index.d.ts +1 -2
- package/layout/index.js +471 -395
- package/package.json +14 -5
- package/vue/chunk-4DPYH3IT.js +3538 -0
- package/vue/editor/index.d.ts +17 -7
- package/vue/editor/index.js +53 -35
- package/vue/index.d.ts +48 -31
- package/vue/index.js +1 -1
- package/dist/chunk-24OTMNIU.js +0 -1617
- package/dist/chunk-D5WRORG6.js +0 -366
- package/dist/chunk-HNFCGIBP.js +0 -8
- package/dist/chunk-NB6DBRXQ.js +0 -323
- package/dist/chunk-OF57X5AR.js +0 -10
- package/dist/chunk-TL4FIE7X.js +0 -93
- package/dist/chunk-UL7UIUJZ.js +0 -20
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/controlled-state-BFya8rAX.js +0 -9
- package/dist/cjs/events-TcQIzpNv.js +0 -19
- package/dist/cjs/icons-BAdjrnhS.js +0 -680
- package/dist/cjs/id-CYbKpaYr.js +0 -9
- package/dist/cjs/index-BHG9Rpil.js +0 -1602
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/cjs/looma.cjs.js +0 -25
- package/dist/cjs/manager-Ce25WRtl.js +0 -95
- package/dist/cjs/positioning-CCR6ifPj.js +0 -426
- package/dist/cjs/ui-affordance-scope.cjs.entry.js +0 -43
- package/dist/cjs/ui-avatar-group.cjs.entry.js +0 -43
- package/dist/cjs/ui-avatar.cjs.entry.js +0 -50
- package/dist/cjs/ui-badge.cjs.entry.js +0 -19
- package/dist/cjs/ui-button.cjs.entry.js +0 -75
- package/dist/cjs/ui-callout.cjs.entry.js +0 -27
- package/dist/cjs/ui-checkbox.cjs.entry.js +0 -97
- package/dist/cjs/ui-chip_2.cjs.entry.js +0 -258
- package/dist/cjs/ui-combobox.cjs.entry.js +0 -708
- package/dist/cjs/ui-context-menu.cjs.entry.js +0 -239
- package/dist/cjs/ui-dialog.cjs.entry.js +0 -131
- package/dist/cjs/ui-disclosure.cjs.entry.js +0 -112
- package/dist/cjs/ui-editable.cjs.entry.js +0 -100
- package/dist/cjs/ui-floating-action-button.cjs.entry.js +0 -20
- package/dist/cjs/ui-form-field.cjs.entry.js +0 -114
- package/dist/cjs/ui-icon-button.cjs.entry.js +0 -23
- package/dist/cjs/ui-input.cjs.entry.js +0 -106
- package/dist/cjs/ui-menu-item.cjs.entry.js +0 -19
- package/dist/cjs/ui-menu.cjs.entry.js +0 -182
- package/dist/cjs/ui-popover.cjs.entry.js +0 -135
- package/dist/cjs/ui-radio-group.cjs.entry.js +0 -134
- package/dist/cjs/ui-radio.cjs.entry.js +0 -94
- package/dist/cjs/ui-search-result-row.cjs.entry.js +0 -47
- package/dist/cjs/ui-search-shell.cjs.entry.js +0 -39
- package/dist/cjs/ui-select.cjs.entry.js +0 -108
- package/dist/cjs/ui-switch.cjs.entry.js +0 -74
- package/dist/cjs/ui-tabs.cjs.entry.js +0 -118
- package/dist/cjs/ui-textarea.cjs.entry.js +0 -110
- package/dist/cjs/ui-toast-region.cjs.entry.js +0 -93
- package/dist/cjs/ui-top-bar.cjs.entry.js +0 -43
- package/dist/cjs/ui-tree-item.cjs.entry.js +0 -135
- package/dist/cjs/ui-tree.cjs.entry.js +0 -500
- package/dist/collection/collection-manifest.json +0 -45
- package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.css +0 -8
- package/dist/collection/components/ui-affordance-scope/ui-affordance-scope.js +0 -70
- package/dist/collection/components/ui-avatar/ui-avatar.css +0 -35
- package/dist/collection/components/ui-avatar/ui-avatar.js +0 -130
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +0 -32
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +0 -95
- package/dist/collection/components/ui-badge/ui-badge.css +0 -90
- package/dist/collection/components/ui-badge/ui-badge.js +0 -62
- package/dist/collection/components/ui-button/ui-button.css +0 -121
- package/dist/collection/components/ui-button/ui-button.js +0 -141
- package/dist/collection/components/ui-callout/ui-callout.css +0 -74
- package/dist/collection/components/ui-callout/ui-callout.js +0 -59
- package/dist/collection/components/ui-checkbox/ui-checkbox.css +0 -24
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +0 -228
- package/dist/collection/components/ui-chip/ui-chip.css +0 -57
- package/dist/collection/components/ui-chip/ui-chip.js +0 -67
- package/dist/collection/components/ui-combobox/ui-combobox.css +0 -47
- package/dist/collection/components/ui-combobox/ui-combobox.js +0 -1295
- package/dist/collection/components/ui-context-menu/ui-context-menu.css +0 -34
- package/dist/collection/components/ui-context-menu/ui-context-menu.js +0 -311
- package/dist/collection/components/ui-dialog/ui-dialog.css +0 -72
- package/dist/collection/components/ui-dialog/ui-dialog.js +0 -242
- package/dist/collection/components/ui-disclosure/ui-disclosure.css +0 -7
- package/dist/collection/components/ui-disclosure/ui-disclosure.js +0 -184
- package/dist/collection/components/ui-editable/ui-editable.css +0 -2
- package/dist/collection/components/ui-editable/ui-editable.js +0 -196
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +0 -73
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +0 -85
- package/dist/collection/components/ui-form-field/ui-form-field.css +0 -25
- package/dist/collection/components/ui-form-field/ui-form-field.js +0 -180
- package/dist/collection/components/ui-icon-button/ui-icon-button.css +0 -145
- package/dist/collection/components/ui-icon-button/ui-icon-button.js +0 -128
- package/dist/collection/components/ui-input/ui-input.css +0 -48
- package/dist/collection/components/ui-input/ui-input.js +0 -217
- package/dist/collection/components/ui-menu/ui-menu.css +0 -73
- package/dist/collection/components/ui-menu/ui-menu.js +0 -280
- package/dist/collection/components/ui-menu-item/ui-menu-item.css +0 -32
- package/dist/collection/components/ui-menu-item/ui-menu-item.js +0 -64
- package/dist/collection/components/ui-popover/ui-popover.css +0 -58
- package/dist/collection/components/ui-popover/ui-popover.js +0 -232
- package/dist/collection/components/ui-radio/ui-radio.css +0 -22
- package/dist/collection/components/ui-radio/ui-radio.js +0 -226
- package/dist/collection/components/ui-radio-group/ui-radio-group.css +0 -10
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +0 -247
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +0 -80
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +0 -100
- package/dist/collection/components/ui-search-shell/ui-search-shell.css +0 -63
- package/dist/collection/components/ui-search-shell/ui-search-shell.js +0 -46
- package/dist/collection/components/ui-select/ui-select.css +0 -64
- package/dist/collection/components/ui-select/ui-select.js +0 -218
- package/dist/collection/components/ui-switch/ui-switch.css +0 -63
- package/dist/collection/components/ui-switch/ui-switch.js +0 -185
- package/dist/collection/components/ui-tabs/ui-tabs.css +0 -68
- package/dist/collection/components/ui-tabs/ui-tabs.js +0 -190
- package/dist/collection/components/ui-textarea/ui-textarea.css +0 -49
- package/dist/collection/components/ui-textarea/ui-textarea.js +0 -241
- package/dist/collection/components/ui-toast-region/ui-toast-region.css +0 -59
- package/dist/collection/components/ui-toast-region/ui-toast-region.js +0 -126
- package/dist/collection/components/ui-tooltip/ui-tooltip.css +0 -43
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +0 -430
- package/dist/collection/components/ui-top-bar/ui-top-bar.css +0 -51
- package/dist/collection/components/ui-top-bar/ui-top-bar.js +0 -52
- package/dist/collection/components/ui-tree/ui-tree.css +0 -12
- package/dist/collection/components/ui-tree/ui-tree.js +0 -515
- package/dist/collection/components/ui-tree-item/ui-tree-item.css +0 -217
- package/dist/collection/components/ui-tree-item/ui-tree-item.js +0 -406
- package/dist/collection/field/combobox.js +0 -4
- package/dist/collection/field/editable.js +0 -1
- package/dist/collection/field/multi-combobox.js +0 -1
- package/dist/collection/field/valibot.js +0 -5
- package/dist/collection/field/validation.js +0 -62
- package/dist/collection/icons.js +0 -71
- package/dist/collection/input-modality.js +0 -24
- package/dist/collection/overlay/manager.js +0 -92
- package/dist/collection/overlay/positioning.js +0 -424
- package/dist/collection/utils/controlled-state.js +0 -4
- package/dist/collection/utils/drag-drop.js +0 -51
- package/dist/collection/utils/events.js +0 -13
- package/dist/collection/utils/id.js +0 -5
- package/dist/collection/utils/initials.js +0 -11
- package/dist/components/index.d.ts +0 -102
- package/dist/components/index.js +0 -1
- package/dist/components/p-6SWSrfmW.js +0 -1
- package/dist/components/p-B_DaIVEY.js +0 -1
- package/dist/components/p-Bh_1GxOD.js +0 -1
- package/dist/components/p-BnGhGgTH.js +0 -1
- package/dist/components/p-BzaB_bXo.js +0 -1
- package/dist/components/p-C-0syqXZ.js +0 -1
- package/dist/components/p-CoFximGM.js +0 -13
- package/dist/components/p-JwSoedEO.js +0 -1
- package/dist/components/p-Vc4ExHFc.js +0 -1
- package/dist/components/p-hgBUJRDa.js +0 -1
- package/dist/components/ui-affordance-scope.d.ts +0 -11
- package/dist/components/ui-affordance-scope.js +0 -1
- package/dist/components/ui-avatar-group.d.ts +0 -11
- package/dist/components/ui-avatar-group.js +0 -1
- package/dist/components/ui-avatar.d.ts +0 -11
- package/dist/components/ui-avatar.js +0 -1
- package/dist/components/ui-badge.d.ts +0 -11
- package/dist/components/ui-badge.js +0 -1
- package/dist/components/ui-button.d.ts +0 -11
- package/dist/components/ui-button.js +0 -1
- package/dist/components/ui-callout.d.ts +0 -11
- package/dist/components/ui-callout.js +0 -1
- package/dist/components/ui-checkbox.d.ts +0 -11
- package/dist/components/ui-checkbox.js +0 -1
- package/dist/components/ui-chip.d.ts +0 -11
- package/dist/components/ui-chip.js +0 -1
- package/dist/components/ui-combobox.d.ts +0 -11
- package/dist/components/ui-combobox.js +0 -1
- package/dist/components/ui-context-menu.d.ts +0 -11
- package/dist/components/ui-context-menu.js +0 -1
- package/dist/components/ui-dialog.d.ts +0 -11
- package/dist/components/ui-dialog.js +0 -1
- package/dist/components/ui-disclosure.d.ts +0 -11
- package/dist/components/ui-disclosure.js +0 -1
- package/dist/components/ui-editable.d.ts +0 -11
- package/dist/components/ui-editable.js +0 -1
- package/dist/components/ui-floating-action-button.d.ts +0 -11
- package/dist/components/ui-floating-action-button.js +0 -1
- package/dist/components/ui-form-field.d.ts +0 -11
- package/dist/components/ui-form-field.js +0 -1
- package/dist/components/ui-icon-button.d.ts +0 -11
- package/dist/components/ui-icon-button.js +0 -1
- package/dist/components/ui-input.d.ts +0 -11
- package/dist/components/ui-input.js +0 -1
- package/dist/components/ui-menu-item.d.ts +0 -11
- package/dist/components/ui-menu-item.js +0 -1
- package/dist/components/ui-menu.d.ts +0 -11
- package/dist/components/ui-menu.js +0 -1
- package/dist/components/ui-popover.d.ts +0 -11
- package/dist/components/ui-popover.js +0 -1
- package/dist/components/ui-radio-group.d.ts +0 -11
- package/dist/components/ui-radio-group.js +0 -1
- package/dist/components/ui-radio.d.ts +0 -11
- package/dist/components/ui-radio.js +0 -1
- package/dist/components/ui-search-result-row.d.ts +0 -11
- package/dist/components/ui-search-result-row.js +0 -1
- package/dist/components/ui-search-shell.d.ts +0 -11
- package/dist/components/ui-search-shell.js +0 -1
- package/dist/components/ui-select.d.ts +0 -11
- package/dist/components/ui-select.js +0 -1
- package/dist/components/ui-switch.d.ts +0 -11
- package/dist/components/ui-switch.js +0 -1
- package/dist/components/ui-tabs.d.ts +0 -11
- package/dist/components/ui-tabs.js +0 -1
- package/dist/components/ui-textarea.d.ts +0 -11
- package/dist/components/ui-textarea.js +0 -1
- package/dist/components/ui-toast-region.d.ts +0 -11
- package/dist/components/ui-toast-region.js +0 -1
- package/dist/components/ui-tooltip.d.ts +0 -11
- package/dist/components/ui-tooltip.js +0 -1
- package/dist/components/ui-top-bar.d.ts +0 -11
- package/dist/components/ui-top-bar.js +0 -1
- package/dist/components/ui-tree-item.d.ts +0 -11
- package/dist/components/ui-tree-item.js +0 -1
- package/dist/components/ui-tree.d.ts +0 -11
- package/dist/components/ui-tree.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/controlled-state-BnGhGgTH.js +0 -6
- package/dist/esm/events-JwSoedEO.js +0 -15
- package/dist/esm/icons-CoFximGM.js +0 -678
- package/dist/esm/id-hgBUJRDa.js +0 -7
- package/dist/esm/index-8BGiMGQ0.js +0 -1593
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/looma.js +0 -21
- package/dist/esm/manager-C-0syqXZ.js +0 -91
- package/dist/esm/positioning-ZOr-2PSe.js +0 -421
- package/dist/esm/ui-affordance-scope.entry.js +0 -41
- package/dist/esm/ui-avatar-group.entry.js +0 -41
- package/dist/esm/ui-avatar.entry.js +0 -48
- package/dist/esm/ui-badge.entry.js +0 -17
- package/dist/esm/ui-button.entry.js +0 -73
- package/dist/esm/ui-callout.entry.js +0 -25
- package/dist/esm/ui-checkbox.entry.js +0 -95
- package/dist/esm/ui-chip_2.entry.js +0 -255
- package/dist/esm/ui-combobox.entry.js +0 -706
- package/dist/esm/ui-context-menu.entry.js +0 -237
- package/dist/esm/ui-dialog.entry.js +0 -129
- package/dist/esm/ui-disclosure.entry.js +0 -110
- package/dist/esm/ui-editable.entry.js +0 -98
- package/dist/esm/ui-floating-action-button.entry.js +0 -18
- package/dist/esm/ui-form-field.entry.js +0 -112
- package/dist/esm/ui-icon-button.entry.js +0 -21
- package/dist/esm/ui-input.entry.js +0 -104
- package/dist/esm/ui-menu-item.entry.js +0 -17
- package/dist/esm/ui-menu.entry.js +0 -180
- package/dist/esm/ui-popover.entry.js +0 -133
- package/dist/esm/ui-radio-group.entry.js +0 -132
- package/dist/esm/ui-radio.entry.js +0 -92
- package/dist/esm/ui-search-result-row.entry.js +0 -45
- package/dist/esm/ui-search-shell.entry.js +0 -37
- package/dist/esm/ui-select.entry.js +0 -106
- package/dist/esm/ui-switch.entry.js +0 -72
- package/dist/esm/ui-tabs.entry.js +0 -116
- package/dist/esm/ui-textarea.entry.js +0 -108
- package/dist/esm/ui-toast-region.entry.js +0 -91
- package/dist/esm/ui-top-bar.entry.js +0 -41
- package/dist/esm/ui-tree-item.entry.js +0 -133
- package/dist/esm/ui-tree.entry.js +0 -498
- package/dist/index.cjs.js +0 -1
- package/dist/looma/index.esm.js +0 -0
- package/dist/looma/looma.esm.js +0 -1
- package/dist/looma/p-08f80207.entry.js +0 -1
- package/dist/looma/p-0b5b8d9e.entry.js +0 -1
- package/dist/looma/p-1249a806.entry.js +0 -1
- package/dist/looma/p-16e0669d.entry.js +0 -1
- package/dist/looma/p-1c00670f.entry.js +0 -1
- package/dist/looma/p-1c5a7522.entry.js +0 -1
- package/dist/looma/p-22842f8c.entry.js +0 -1
- package/dist/looma/p-2915d5c0.entry.js +0 -1
- package/dist/looma/p-3b2961a6.entry.js +0 -1
- package/dist/looma/p-3f60f4c8.entry.js +0 -1
- package/dist/looma/p-424d6719.entry.js +0 -1
- package/dist/looma/p-4caccfce.entry.js +0 -1
- package/dist/looma/p-5fdcee1d.entry.js +0 -1
- package/dist/looma/p-6d8b99ee.entry.js +0 -1
- package/dist/looma/p-6f20d470.entry.js +0 -1
- package/dist/looma/p-7c0b5364.entry.js +0 -1
- package/dist/looma/p-8BGiMGQ0.js +0 -2
- package/dist/looma/p-8bdd9495.entry.js +0 -1
- package/dist/looma/p-99116a72.entry.js +0 -1
- package/dist/looma/p-9cfbf722.entry.js +0 -1
- package/dist/looma/p-9d2662ca.entry.js +0 -1
- package/dist/looma/p-9ff2fa19.entry.js +0 -1
- package/dist/looma/p-BnGhGgTH.js +0 -1
- package/dist/looma/p-C-0syqXZ.js +0 -1
- package/dist/looma/p-CoFximGM.js +0 -13
- package/dist/looma/p-DQuL1Twl.js +0 -1
- package/dist/looma/p-JwSoedEO.js +0 -1
- package/dist/looma/p-ZOr-2PSe.js +0 -1
- package/dist/looma/p-a2dd4c6c.entry.js +0 -1
- package/dist/looma/p-add67e4c.entry.js +0 -1
- package/dist/looma/p-b6ede6bb.entry.js +0 -1
- package/dist/looma/p-b76e2111.entry.js +0 -1
- package/dist/looma/p-ca2a54fd.entry.js +0 -1
- package/dist/looma/p-d372b0db.entry.js +0 -1
- package/dist/looma/p-d4825822.entry.js +0 -1
- package/dist/looma/p-d56571a2.entry.js +0 -1
- package/dist/looma/p-d5c3954f.entry.js +0 -1
- package/dist/looma/p-e604e906.entry.js +0 -1
- package/dist/looma/p-f1f7c5cb.entry.js +0 -1
- package/dist/looma/p-hgBUJRDa.js +0 -1
- package/dist/types/components/ui-affordance-scope/ui-affordance-scope.d.ts +0 -11
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +0 -11
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +0 -11
- package/dist/types/components/ui-badge/ui-badge.d.ts +0 -5
- package/dist/types/components/ui-button/ui-button.d.ts +0 -13
- package/dist/types/components/ui-callout/ui-callout.d.ts +0 -6
- package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +0 -20
- package/dist/types/components/ui-chip/ui-chip.d.ts +0 -8
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +0 -128
- package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +0 -43
- package/dist/types/components/ui-dialog/ui-dialog.d.ts +0 -27
- package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +0 -21
- package/dist/types/components/ui-editable/ui-editable.d.ts +0 -24
- package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +0 -6
- package/dist/types/components/ui-form-field/ui-form-field.d.ts +0 -18
- package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +0 -9
- package/dist/types/components/ui-input/ui-input.d.ts +0 -19
- package/dist/types/components/ui-menu/ui-menu.d.ts +0 -28
- package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +0 -5
- package/dist/types/components/ui-popover/ui-popover.d.ts +0 -26
- package/dist/types/components/ui-radio/ui-radio.d.ts +0 -20
- package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +0 -21
- package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +0 -15
- package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +0 -9
- package/dist/types/components/ui-select/ui-select.d.ts +0 -20
- package/dist/types/components/ui-switch/ui-switch.d.ts +0 -16
- package/dist/types/components/ui-tabs/ui-tabs.d.ts +0 -18
- package/dist/types/components/ui-textarea/ui-textarea.d.ts +0 -20
- package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +0 -16
- package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +0 -57
- package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +0 -12
- package/dist/types/components/ui-tree/ui-tree.d.ts +0 -53
- package/dist/types/components/ui-tree-item/ui-tree-item.d.ts +0 -44
- package/dist/types/components.d.ts +0 -1889
- package/dist/types/field/combobox.d.ts +0 -46
- package/dist/types/field/editable.d.ts +0 -5
- package/dist/types/field/multi-combobox.d.ts +0 -11
- package/dist/types/field/valibot.d.ts +0 -7
- package/dist/types/icons.d.ts +0 -53
- package/dist/types/input-modality.d.ts +0 -6
- package/dist/types/overlay/manager.d.ts +0 -17
- package/dist/types/overlay/positioning.d.ts +0 -74
- package/dist/types/stencil-public-runtime.d.ts +0 -1860
- package/dist/types/utils/controlled-state.d.ts +0 -4
- package/dist/types/utils/drag-drop.d.ts +0 -15
- package/dist/types/utils/events.d.ts +0 -4
- package/dist/types/utils/id.d.ts +0 -1
- package/dist/types/utils/initials.d.ts +0 -1
- package/dist/ui-affordance-scope.entry-L6TIXYOP.js +0 -54
- package/dist/ui-avatar-group.entry-TCAA6P72.js +0 -51
- package/dist/ui-avatar.entry-52DQ7VXA.js +0 -51
- package/dist/ui-badge.entry-2XCAA6LL.js +0 -22
- package/dist/ui-button.entry-MNFBMNSX.js +0 -83
- package/dist/ui-callout.entry-SSHT5TH2.js +0 -32
- package/dist/ui-checkbox.entry-LOWIWIWI.js +0 -111
- package/dist/ui-chip_2.entry-BIMTSF6C.js +0 -272
- package/dist/ui-combobox.entry-25Z4MN7N.js +0 -717
- package/dist/ui-context-menu.entry-YZDL5Y4M.js +0 -248
- package/dist/ui-dialog.entry-HIXZX5AB.js +0 -146
- package/dist/ui-disclosure.entry-2JZHZNDQ.js +0 -126
- package/dist/ui-editable.entry-U3VR3XPT.js +0 -110
- package/dist/ui-floating-action-button.entry-6S3QN3KJ.js +0 -23
- package/dist/ui-form-field.entry-GQOSMLHT.js +0 -120
- package/dist/ui-icon-button.entry-QJXKVDM6.js +0 -26
- package/dist/ui-input.entry-UWMQ6JMP.js +0 -114
- package/dist/ui-menu-item.entry-NHNZKKJS.js +0 -22
- package/dist/ui-menu.entry-D53RUJND.js +0 -192
- package/dist/ui-popover.entry-7ZSIWCFQ.js +0 -152
- package/dist/ui-radio-group.entry-37MSYIH4.js +0 -142
- package/dist/ui-radio.entry-7YGCDHXT.js +0 -108
- package/dist/ui-search-result-row.entry-6FCCLGAS.js +0 -50
- package/dist/ui-search-shell.entry-HSBEXPER.js +0 -41
- package/dist/ui-select.entry-GIDIAYRD.js +0 -117
- package/dist/ui-switch.entry-MYAL6XPC.js +0 -87
- package/dist/ui-tabs.entry-R4TEXQSD.js +0 -128
- package/dist/ui-textarea.entry-FW32JNDV.js +0 -119
- package/dist/ui-toast-region.entry-BTMFPKZF.js +0 -104
- package/dist/ui-top-bar.entry-5DQGJF3B.js +0 -49
- package/dist/ui-tree-item.entry-ADT7DSOS.js +0 -145
- package/dist/ui-tree.entry-7PYQ5RIN.js +0 -470
- package/editor/chunk-64GLF274.js +0 -1271
- package/layout/index.css +0 -387
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/vue/chunk-ROMBQS2L.js +0 -352
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { eventToTrigger } from "../../utils/events";
|
|
3
|
-
import { dispatchDetail } from "../../utils/events";
|
|
4
|
-
export class UIRadioGroup {
|
|
5
|
-
host;
|
|
6
|
-
value = '';
|
|
7
|
-
name = '';
|
|
8
|
-
orientation = 'horizontal';
|
|
9
|
-
disabled = false;
|
|
10
|
-
required = false;
|
|
11
|
-
internalValue = '';
|
|
12
|
-
syncFromProp() {
|
|
13
|
-
this.internalValue = this.value;
|
|
14
|
-
}
|
|
15
|
-
syncToRadios() {
|
|
16
|
-
const radios = this.getRadios();
|
|
17
|
-
radios.forEach((radio) => {
|
|
18
|
-
radio.checked =
|
|
19
|
-
(radio.getAttribute('value') ?? '') === this.internalValue;
|
|
20
|
-
radio.name = this.name || this.groupId;
|
|
21
|
-
if (this.disabled) {
|
|
22
|
-
radio.setAttribute('aria-disabled', 'true');
|
|
23
|
-
radio.setAttribute('data-disabled', 'true');
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
radio.removeAttribute('aria-disabled');
|
|
27
|
-
radio.removeAttribute('data-disabled');
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
this.updateRovingTabindex();
|
|
31
|
-
}
|
|
32
|
-
groupId = `ui-radio-group-${Math.random().toString(36).slice(2, 9)}`;
|
|
33
|
-
componentDidLoad() {
|
|
34
|
-
this.syncFromProp();
|
|
35
|
-
this.syncToRadios();
|
|
36
|
-
this.host.addEventListener('change', this.onRadioChange);
|
|
37
|
-
this.host.addEventListener('keydown', this.onKeydown);
|
|
38
|
-
}
|
|
39
|
-
disconnectedCallback() {
|
|
40
|
-
this.host.removeEventListener('change', this.onRadioChange);
|
|
41
|
-
this.host.removeEventListener('keydown', this.onKeydown);
|
|
42
|
-
}
|
|
43
|
-
componentDidUpdate() {
|
|
44
|
-
this.syncToRadios();
|
|
45
|
-
}
|
|
46
|
-
getRadios() {
|
|
47
|
-
return Array.from(this.host.querySelectorAll('ui-radio'));
|
|
48
|
-
}
|
|
49
|
-
updateRovingTabindex() {
|
|
50
|
-
const radios = this.getRadios();
|
|
51
|
-
const currentIndex = radios.findIndex((r) => (r.getAttribute('value') ?? '') === this.internalValue);
|
|
52
|
-
radios.forEach((r, i) => {
|
|
53
|
-
const input = r.querySelector('input[type="radio"]');
|
|
54
|
-
if (input) {
|
|
55
|
-
input.tabIndex = i === (currentIndex >= 0 ? currentIndex : 0) ? 0 : -1;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
setValue(newValue, trigger) {
|
|
60
|
-
const prev = this.internalValue;
|
|
61
|
-
this.internalValue = newValue;
|
|
62
|
-
this.syncToRadios();
|
|
63
|
-
dispatchDetail(this.host, 'select', { value: newValue, previousValue: prev, trigger });
|
|
64
|
-
dispatchDetail(this.host, 'change', {
|
|
65
|
-
checked: true,
|
|
66
|
-
value: newValue,
|
|
67
|
-
trigger,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
onRadioChange = (e) => {
|
|
71
|
-
const target = e.target.closest?.('ui-radio');
|
|
72
|
-
if (!target || target.getRootNode() !== this.host.getRootNode())
|
|
73
|
-
return;
|
|
74
|
-
const value = target.getAttribute('value') ?? '';
|
|
75
|
-
if (value && value !== this.internalValue) {
|
|
76
|
-
this.setValue(value, eventToTrigger(e));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
onKeydown = (e) => {
|
|
80
|
-
const radios = this.getRadios();
|
|
81
|
-
if (radios.length === 0)
|
|
82
|
-
return;
|
|
83
|
-
const currentIndex = radios.findIndex((r) => (r.getAttribute('value') ?? '') === this.internalValue);
|
|
84
|
-
const axis = this.orientation === 'vertical' ? 'vertical' : 'horizontal';
|
|
85
|
-
const isPrev = axis === 'horizontal' ? e.key === 'ArrowLeft' : e.key === 'ArrowUp';
|
|
86
|
-
const isNext = axis === 'horizontal' ? e.key === 'ArrowRight' : e.key === 'ArrowDown';
|
|
87
|
-
if (!isPrev && !isNext)
|
|
88
|
-
return;
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
let nextIndex;
|
|
91
|
-
if (isNext) {
|
|
92
|
-
nextIndex = currentIndex < 0 ? 0 : Math.min(currentIndex + 1, radios.length - 1);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
nextIndex = currentIndex <= 0 ? radios.length - 1 : currentIndex - 1;
|
|
96
|
-
}
|
|
97
|
-
const nextRadio = radios[nextIndex];
|
|
98
|
-
const nextValue = nextRadio?.getAttribute('value') ?? '';
|
|
99
|
-
if (nextValue) {
|
|
100
|
-
this.setValue(nextValue, 'keyboard');
|
|
101
|
-
nextRadio?.querySelector('input[type="radio"]')?.focus();
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
render() {
|
|
105
|
-
return (h(Host, { key: '9bdfe6b5209b5444cb27dde3226ec33866999c25', role: "radiogroup", "aria-orientation": this.orientation, "data-orientation": this.orientation, "data-disabled": this.disabled ? '' : undefined }, h("slot", { key: 'b81a2f1e4c49000cfb5357570b460564ced48d91' })));
|
|
106
|
-
}
|
|
107
|
-
static get is() { return "ui-radio-group"; }
|
|
108
|
-
static get encapsulation() { return "shadow"; }
|
|
109
|
-
static get originalStyleUrls() {
|
|
110
|
-
return {
|
|
111
|
-
"$": ["ui-radio-group.css"]
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
static get styleUrls() {
|
|
115
|
-
return {
|
|
116
|
-
"$": ["ui-radio-group.css"]
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
static get properties() {
|
|
120
|
-
return {
|
|
121
|
-
"value": {
|
|
122
|
-
"type": "string",
|
|
123
|
-
"mutable": false,
|
|
124
|
-
"complexType": {
|
|
125
|
-
"original": "string",
|
|
126
|
-
"resolved": "string",
|
|
127
|
-
"references": {}
|
|
128
|
-
},
|
|
129
|
-
"required": false,
|
|
130
|
-
"optional": false,
|
|
131
|
-
"docs": {
|
|
132
|
-
"tags": [],
|
|
133
|
-
"text": ""
|
|
134
|
-
},
|
|
135
|
-
"getter": false,
|
|
136
|
-
"setter": false,
|
|
137
|
-
"reflect": false,
|
|
138
|
-
"attribute": "value",
|
|
139
|
-
"defaultValue": "''"
|
|
140
|
-
},
|
|
141
|
-
"name": {
|
|
142
|
-
"type": "string",
|
|
143
|
-
"mutable": false,
|
|
144
|
-
"complexType": {
|
|
145
|
-
"original": "string",
|
|
146
|
-
"resolved": "string",
|
|
147
|
-
"references": {}
|
|
148
|
-
},
|
|
149
|
-
"required": false,
|
|
150
|
-
"optional": false,
|
|
151
|
-
"docs": {
|
|
152
|
-
"tags": [],
|
|
153
|
-
"text": ""
|
|
154
|
-
},
|
|
155
|
-
"getter": false,
|
|
156
|
-
"setter": false,
|
|
157
|
-
"reflect": false,
|
|
158
|
-
"attribute": "name",
|
|
159
|
-
"defaultValue": "''"
|
|
160
|
-
},
|
|
161
|
-
"orientation": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"mutable": false,
|
|
164
|
-
"complexType": {
|
|
165
|
-
"original": "'horizontal' | 'vertical'",
|
|
166
|
-
"resolved": "\"horizontal\" | \"vertical\"",
|
|
167
|
-
"references": {}
|
|
168
|
-
},
|
|
169
|
-
"required": false,
|
|
170
|
-
"optional": false,
|
|
171
|
-
"docs": {
|
|
172
|
-
"tags": [],
|
|
173
|
-
"text": ""
|
|
174
|
-
},
|
|
175
|
-
"getter": false,
|
|
176
|
-
"setter": false,
|
|
177
|
-
"reflect": false,
|
|
178
|
-
"attribute": "orientation",
|
|
179
|
-
"defaultValue": "'horizontal'"
|
|
180
|
-
},
|
|
181
|
-
"disabled": {
|
|
182
|
-
"type": "boolean",
|
|
183
|
-
"mutable": false,
|
|
184
|
-
"complexType": {
|
|
185
|
-
"original": "boolean",
|
|
186
|
-
"resolved": "boolean",
|
|
187
|
-
"references": {}
|
|
188
|
-
},
|
|
189
|
-
"required": false,
|
|
190
|
-
"optional": false,
|
|
191
|
-
"docs": {
|
|
192
|
-
"tags": [],
|
|
193
|
-
"text": ""
|
|
194
|
-
},
|
|
195
|
-
"getter": false,
|
|
196
|
-
"setter": false,
|
|
197
|
-
"reflect": false,
|
|
198
|
-
"attribute": "disabled",
|
|
199
|
-
"defaultValue": "false"
|
|
200
|
-
},
|
|
201
|
-
"required": {
|
|
202
|
-
"type": "boolean",
|
|
203
|
-
"mutable": false,
|
|
204
|
-
"complexType": {
|
|
205
|
-
"original": "boolean",
|
|
206
|
-
"resolved": "boolean",
|
|
207
|
-
"references": {}
|
|
208
|
-
},
|
|
209
|
-
"required": false,
|
|
210
|
-
"optional": false,
|
|
211
|
-
"docs": {
|
|
212
|
-
"tags": [],
|
|
213
|
-
"text": ""
|
|
214
|
-
},
|
|
215
|
-
"getter": false,
|
|
216
|
-
"setter": false,
|
|
217
|
-
"reflect": false,
|
|
218
|
-
"attribute": "required",
|
|
219
|
-
"defaultValue": "false"
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
static get states() {
|
|
224
|
-
return {
|
|
225
|
-
"internalValue": {}
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
static get elementRef() { return "host"; }
|
|
229
|
-
static get watchers() {
|
|
230
|
-
return [{
|
|
231
|
-
"propName": "value",
|
|
232
|
-
"methodName": "syncFromProp"
|
|
233
|
-
}, {
|
|
234
|
-
"propName": "internalValue",
|
|
235
|
-
"methodName": "syncToRadios"
|
|
236
|
-
}, {
|
|
237
|
-
"propName": "name",
|
|
238
|
-
"methodName": "syncToRadios"
|
|
239
|
-
}, {
|
|
240
|
-
"propName": "orientation",
|
|
241
|
-
"methodName": "syncToRadios"
|
|
242
|
-
}, {
|
|
243
|
-
"propName": "disabled",
|
|
244
|
-
"methodName": "syncToRadios"
|
|
245
|
-
}];
|
|
246
|
-
}
|
|
247
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.search-result-row {
|
|
6
|
-
appearance: none;
|
|
7
|
-
inline-size: 100%;
|
|
8
|
-
min-block-size: var(--ui-search-result-row-min-height, 56px);
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding-block: var(--ui-search-result-row-padding-block, var(--ui-space-3, 0.75rem));
|
|
11
|
-
padding-inline: var(--ui-search-result-row-padding-inline, var(--ui-space-4, 1rem));
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: flex-start;
|
|
14
|
-
gap: var(--ui-search-result-row-gap, var(--ui-space-3, 0.75rem));
|
|
15
|
-
background: var(--ui-search-result-row-bg, transparent);
|
|
16
|
-
border: none;
|
|
17
|
-
border-block-end: 1px solid var(--ui-search-result-row-border, var(--ui-border, #e5e7eb));
|
|
18
|
-
color: inherit;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
text-align: left;
|
|
21
|
-
transition: background-color var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host(:last-child) .search-result-row {
|
|
25
|
-
border-block-end: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.search-result-row:hover:enabled {
|
|
29
|
-
background: var(--ui-search-result-row-hover-bg, color-mix(in srgb, var(--ui-surface, #ffffff) 85%, black 3%));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:host([selected]) .search-result-row {
|
|
33
|
-
background: var(
|
|
34
|
-
--ui-search-result-row-selected-bg,
|
|
35
|
-
var(--ui-search-result-row-hover-bg, color-mix(in srgb, var(--ui-surface, #ffffff) 85%, black 3%))
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.search-result-row:focus-visible {
|
|
40
|
-
outline: 2px solid var(--ui-focus-ring, #2563eb);
|
|
41
|
-
outline-offset: -2px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.search-result-row:disabled,
|
|
45
|
-
:host([disabled]) .search-result-row {
|
|
46
|
-
opacity: 0.6;
|
|
47
|
-
cursor: not-allowed;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.search-result-row__leading,
|
|
51
|
-
.search-result-row__trailing {
|
|
52
|
-
display: inline-flex;
|
|
53
|
-
align-items: flex-start;
|
|
54
|
-
flex-shrink: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.search-result-row__content {
|
|
58
|
-
min-inline-size: 0;
|
|
59
|
-
flex: 1;
|
|
60
|
-
display: flex;
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.search-result-row__title,
|
|
65
|
-
.search-result-row__meta,
|
|
66
|
-
.search-result-row__excerpt {
|
|
67
|
-
display: block;
|
|
68
|
-
min-inline-size: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[hidden] {
|
|
72
|
-
display: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
::slotted([slot='title']),
|
|
76
|
-
::slotted([slot='meta']),
|
|
77
|
-
::slotted([slot='excerpt']) {
|
|
78
|
-
display: block;
|
|
79
|
-
margin: 0;
|
|
80
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
function slotHasContent(slot) {
|
|
3
|
-
if (!slot) {
|
|
4
|
-
return false;
|
|
5
|
-
}
|
|
6
|
-
return slot.assignedNodes({ flatten: true }).some((node) => {
|
|
7
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
8
|
-
return Boolean(node.textContent?.trim());
|
|
9
|
-
}
|
|
10
|
-
return true;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export class UISearchResultRow {
|
|
14
|
-
disabled = false;
|
|
15
|
-
selected = false;
|
|
16
|
-
hasLeading = false;
|
|
17
|
-
hasMeta = false;
|
|
18
|
-
hasExcerpt = false;
|
|
19
|
-
hasTrailing = false;
|
|
20
|
-
leadingSlot;
|
|
21
|
-
metaSlot;
|
|
22
|
-
excerptSlot;
|
|
23
|
-
trailingSlot;
|
|
24
|
-
componentDidLoad() {
|
|
25
|
-
this.syncSlots();
|
|
26
|
-
}
|
|
27
|
-
syncSlots = () => {
|
|
28
|
-
this.hasLeading = slotHasContent(this.leadingSlot);
|
|
29
|
-
this.hasMeta = slotHasContent(this.metaSlot);
|
|
30
|
-
this.hasExcerpt = slotHasContent(this.excerptSlot);
|
|
31
|
-
this.hasTrailing = slotHasContent(this.trailingSlot);
|
|
32
|
-
};
|
|
33
|
-
render() {
|
|
34
|
-
return (h(Host, { key: '923d7ac982594e39c06421b60f115acbb395f169' }, h("button", { key: 'c97e45ba33297a8aeaa4a9726402c71e3ca73a7b', class: "search-result-row", type: "button", disabled: this.disabled, part: "button" }, h("span", { key: 'dea0781519760f5dc2b46902ef86f9e72ccfa6df', class: "search-result-row__leading", part: "leading", hidden: !this.hasLeading }, h("slot", { key: 'e10026c17caaa3a21e9dd34c7faabfe9b97f2f5b', name: "leading", ref: (el) => (this.leadingSlot = el), onSlotchange: this.syncSlots })), h("span", { key: 'e8bb06b45aff7ddbaa9a51cc7c53d797e68e8746', class: "search-result-row__content", part: "content" }, h("span", { key: '6e1c2d49029e1c1fdc2519f513ddedbe304ddb3e', class: "search-result-row__title", part: "title" }, h("slot", { key: '9653efc0b61c49d36034c4c75a3e9b3d7a6f837b', name: "title" })), h("span", { key: 'b10885a7649c75f9e6903354f5804f459aa883b7', class: "search-result-row__meta", part: "meta", hidden: !this.hasMeta }, h("slot", { key: 'b3101183b0dfa0cc1ba8e62c1f8fc39ad865e1ae', name: "meta", ref: (el) => (this.metaSlot = el), onSlotchange: this.syncSlots })), h("span", { key: '430520c0e349344fc4c549cd36a0137d39fc8d24', class: "search-result-row__excerpt", part: "excerpt", hidden: !this.hasExcerpt }, h("slot", { key: '4a90cefa9b1d2b2378d1a8aa166aa8fdebfbca42', name: "excerpt", ref: (el) => (this.excerptSlot = el), onSlotchange: this.syncSlots }))), h("span", { key: '769ed2f62ead7ce32b13cdad93a7bbb981b13b3c', class: "search-result-row__trailing", part: "trailing", hidden: !this.hasTrailing }, h("slot", { key: '86490f5fef29c6fa4d8ddf838de5f9aee8535db0', name: "trailing", ref: (el) => (this.trailingSlot = el), onSlotchange: this.syncSlots })))));
|
|
35
|
-
}
|
|
36
|
-
static get is() { return "ui-search-result-row"; }
|
|
37
|
-
static get encapsulation() { return "shadow"; }
|
|
38
|
-
static get originalStyleUrls() {
|
|
39
|
-
return {
|
|
40
|
-
"$": ["ui-search-result-row.css"]
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
static get styleUrls() {
|
|
44
|
-
return {
|
|
45
|
-
"$": ["ui-search-result-row.css"]
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static get properties() {
|
|
49
|
-
return {
|
|
50
|
-
"disabled": {
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"mutable": false,
|
|
53
|
-
"complexType": {
|
|
54
|
-
"original": "boolean",
|
|
55
|
-
"resolved": "boolean",
|
|
56
|
-
"references": {}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": false,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
},
|
|
64
|
-
"getter": false,
|
|
65
|
-
"setter": false,
|
|
66
|
-
"reflect": true,
|
|
67
|
-
"attribute": "disabled",
|
|
68
|
-
"defaultValue": "false"
|
|
69
|
-
},
|
|
70
|
-
"selected": {
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"mutable": false,
|
|
73
|
-
"complexType": {
|
|
74
|
-
"original": "boolean",
|
|
75
|
-
"resolved": "boolean",
|
|
76
|
-
"references": {}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": false,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"getter": false,
|
|
85
|
-
"setter": false,
|
|
86
|
-
"reflect": true,
|
|
87
|
-
"attribute": "selected",
|
|
88
|
-
"defaultValue": "false"
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
static get states() {
|
|
93
|
-
return {
|
|
94
|
-
"hasLeading": {},
|
|
95
|
-
"hasMeta": {},
|
|
96
|
-
"hasExcerpt": {},
|
|
97
|
-
"hasTrailing": {}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: fixed;
|
|
3
|
-
inset: 0;
|
|
4
|
-
z-index: var(--ui-search-shell-z-index, 400);
|
|
5
|
-
display: block;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.search-shell {
|
|
9
|
-
position: absolute;
|
|
10
|
-
inset: 0;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: flex-start;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
padding-block-start: var(--ui-search-shell-padding-top, 10vh);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.search-shell__panel {
|
|
18
|
-
position: relative;
|
|
19
|
-
inline-size: min(
|
|
20
|
-
calc(100% - (var(--ui-search-shell-margin-inline, var(--ui-space-4, 1rem)) * 2)),
|
|
21
|
-
var(--ui-search-shell-max-width, 640px)
|
|
22
|
-
);
|
|
23
|
-
max-block-size: var(--ui-search-shell-max-height, 80vh);
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
background: var(--ui-search-shell-bg, var(--ui-surface, #ffffff));
|
|
28
|
-
border: 1px solid var(--ui-search-shell-border, var(--ui-border, #e5e7eb));
|
|
29
|
-
border-radius: var(--ui-search-shell-radius, var(--ui-radius-xl, 1rem));
|
|
30
|
-
box-shadow: var(--ui-search-shell-shadow, var(--ui-shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12)));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.search-shell__search,
|
|
34
|
-
.search-shell__status,
|
|
35
|
-
.search-shell__footer {
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.search-shell__body {
|
|
40
|
-
flex: 1;
|
|
41
|
-
min-block-size: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[hidden] {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media (max-width: 767px) {
|
|
49
|
-
.search-shell {
|
|
50
|
-
padding-block-start: 0;
|
|
51
|
-
align-items: stretch;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.search-shell__panel {
|
|
55
|
-
inline-size: 100%;
|
|
56
|
-
block-size: 100vh;
|
|
57
|
-
block-size: 100dvh;
|
|
58
|
-
max-block-size: none;
|
|
59
|
-
border-radius: 0;
|
|
60
|
-
border-inline: none;
|
|
61
|
-
border-block-start: none;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
function slotHasContent(slot) {
|
|
3
|
-
if (!slot) {
|
|
4
|
-
return false;
|
|
5
|
-
}
|
|
6
|
-
return slot.assignedNodes({ flatten: true }).some((node) => {
|
|
7
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
8
|
-
return Boolean(node.textContent?.trim());
|
|
9
|
-
}
|
|
10
|
-
return true;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export class UISearchShell {
|
|
14
|
-
hasStatus = false;
|
|
15
|
-
hasFooter = false;
|
|
16
|
-
statusSlot;
|
|
17
|
-
footerSlot;
|
|
18
|
-
componentDidLoad() {
|
|
19
|
-
this.syncSlots();
|
|
20
|
-
}
|
|
21
|
-
syncSlots = () => {
|
|
22
|
-
this.hasStatus = slotHasContent(this.statusSlot);
|
|
23
|
-
this.hasFooter = slotHasContent(this.footerSlot);
|
|
24
|
-
};
|
|
25
|
-
render() {
|
|
26
|
-
return (h("div", { key: '049a6451f10f1906881efc8fc2cdeba656e68733', class: "search-shell", part: "base" }, h("slot", { key: 'e807b035ccb9ec9425651b59a0d137ebc54329aa', name: "backdrop" }), h("div", { key: '5d785a0d4dab1fed7f6750b82485b9e50edd62d9', class: "search-shell__panel", part: "panel" }, h("div", { key: 'b41c40485d61d9436504483759a5f42d96e5aad2', class: "search-shell__search", part: "search" }, h("slot", { key: 'b19058bca701cc26d286c8694c7cdc6306e100c4', name: "search" })), h("div", { key: '260164b95427e03329f28247e8dbda867506e672', class: "search-shell__status", part: "status", hidden: !this.hasStatus }, h("slot", { key: '1d7c1e8c96e588b7c9c906cfaad91ba1cf77bf7c', name: "status", ref: (el) => (this.statusSlot = el), onSlotchange: this.syncSlots })), h("div", { key: '49963c82e54aee2b5c4c4809ce2b152f770b4468', class: "search-shell__body", part: "body" }, h("slot", { key: 'ae32ec8c9ec89310ad1805f1c65bc8208ee12f29', name: "body" })), h("div", { key: 'f5fc9f356035e277e4c9bb0e188d7b4be3642c27', class: "search-shell__footer", part: "footer", hidden: !this.hasFooter }, h("slot", { key: 'dbf1022e49a054eee1c5e70b675c71d1cf3488bf', name: "footer", ref: (el) => (this.footerSlot = el), onSlotchange: this.syncSlots })))));
|
|
27
|
-
}
|
|
28
|
-
static get is() { return "ui-search-shell"; }
|
|
29
|
-
static get encapsulation() { return "shadow"; }
|
|
30
|
-
static get originalStyleUrls() {
|
|
31
|
-
return {
|
|
32
|
-
"$": ["ui-search-shell.css"]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static get styleUrls() {
|
|
36
|
-
return {
|
|
37
|
-
"$": ["ui-search-shell.css"]
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
static get states() {
|
|
41
|
-
return {
|
|
42
|
-
"hasStatus": {},
|
|
43
|
-
"hasFooter": {}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
min-inline-size: 0;
|
|
4
|
-
color: var(--ui-text-primary);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
::slotted(select) {
|
|
8
|
-
width: 100%;
|
|
9
|
-
appearance: none;
|
|
10
|
-
min-block-size: var(--ui-control-min-block-size, 2.75rem);
|
|
11
|
-
border: 1px solid var(--ui-control-border, var(--ui-border-default));
|
|
12
|
-
border-radius: var(--ui-radius-2);
|
|
13
|
-
background-color: var(--ui-control-surface, var(--ui-surface-default));
|
|
14
|
-
color: inherit;
|
|
15
|
-
font: inherit;
|
|
16
|
-
line-height: var(--ui-line-height-md);
|
|
17
|
-
padding-block: var(--ui-select-padding-block, var(--ui-space-2));
|
|
18
|
-
padding-inline-start: var(--ui-select-padding-inline-start, var(--ui-space-3));
|
|
19
|
-
padding-inline-end: var(--ui-select-padding-inline-end, calc(var(--ui-space-6) + var(--ui-space-3)));
|
|
20
|
-
margin: 0;
|
|
21
|
-
background-image:
|
|
22
|
-
linear-gradient(45deg, transparent 50%, currentColor 50%),
|
|
23
|
-
linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
24
|
-
background-position:
|
|
25
|
-
calc(100% - 1rem) calc(50% - 2px),
|
|
26
|
-
calc(100% - 0.7rem) calc(50% - 2px);
|
|
27
|
-
background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
|
|
28
|
-
background-repeat: no-repeat;
|
|
29
|
-
transition:
|
|
30
|
-
border-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
31
|
-
box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
|
|
32
|
-
background-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
::slotted(select:hover:not(:focus):not(:disabled)) {
|
|
36
|
-
border-color: var(--ui-control-border-hover, var(--ui-border-strong));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
::slotted(select:focus) {
|
|
40
|
-
border-color: var(--ui-control-focus, var(--ui-focus-ring));
|
|
41
|
-
box-shadow: 0 0 0 3px var(--ui-control-focus-halo, var(--ui-accent-soft));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:host([data-invalid='true'])::slotted(select),
|
|
45
|
-
::slotted(select[aria-invalid='true']) {
|
|
46
|
-
border-color: var(--ui-accent-active);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::slotted(select:disabled) {
|
|
50
|
-
background-color: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
51
|
-
color: var(--ui-text-muted);
|
|
52
|
-
cursor: not-allowed;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
::slotted(select:focus-visible) {
|
|
56
|
-
outline: 2px solid var(--ui-focus-ring);
|
|
57
|
-
outline-offset: 2px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
::slotted(select[multiple]),
|
|
61
|
-
::slotted(select[size]:not([size='1'])) {
|
|
62
|
-
background-image: none;
|
|
63
|
-
padding-inline-end: var(--ui-select-padding-inline-start, var(--ui-space-3));
|
|
64
|
-
}
|