smoothly 0.3.38 → 1.0.0-alpha.10
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/GoogleFont-6c4f0da1.js +2 -0
- package/dist/cjs/GoogleFont-6c4f0da1.js.map +1 -0
- package/dist/cjs/Listenable-c8d2f8ef.js +2 -0
- package/dist/cjs/Listenable-c8d2f8ef.js.map +1 -0
- package/dist/cjs/getLanguage-430ecf04.js +2 -0
- package/dist/cjs/getLanguage-430ecf04.js.map +1 -0
- package/dist/cjs/{index-de46f836.js → index-8352a4e0.js} +106 -1
- package/dist/cjs/index-8352a4e0.js.map +1 -0
- package/dist/cjs/{index-879bbabb.js → index-b282ee83.js} +3 -1
- package/dist/cjs/index-b282ee83.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -2
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_60.cjs.entry.js} +5430 -460
- package/dist/cjs/smoothly-accordion_60.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +32 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-address.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js +23 -0
- package/dist/cjs/smoothly-addresses.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +22 -0
- package/dist/cjs/smoothly-color.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-country.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-google-font.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-reorder.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly.cjs.js +9 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -1
- package/dist/collection/components/App.js +1 -0
- package/dist/collection/components/App.js.map +1 -0
- package/dist/collection/components/Button.js +5 -0
- package/dist/collection/components/Button.js.map +1 -0
- package/dist/collection/components/accordion/index.js +1 -0
- package/dist/collection/components/accordion/index.js.map +1 -0
- package/dist/collection/components/accordion-item/index.js +1 -0
- package/dist/collection/components/accordion-item/index.js.map +1 -0
- package/dist/collection/components/address/index.js +65 -0
- package/dist/collection/components/address/index.js.map +1 -0
- package/dist/collection/components/address/style.css +4 -0
- package/dist/collection/components/address-display/index.js +72 -0
- package/dist/collection/components/address-display/index.js.map +1 -0
- package/dist/collection/components/address-display/style.css +4 -0
- package/dist/collection/components/addresses/index.js +62 -0
- package/dist/collection/components/addresses/index.js.map +1 -0
- package/dist/collection/components/addresses/style.css +4 -0
- package/dist/collection/components/app/index.js +1 -0
- package/dist/collection/components/app/index.js.map +1 -0
- package/dist/collection/components/app-demo/index.js +1 -0
- package/dist/collection/components/app-demo/index.js.map +1 -0
- package/dist/collection/components/backtotop/index.js +1 -0
- package/dist/collection/components/backtotop/index.js.map +1 -0
- package/dist/collection/components/button/index.js +50 -26
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button/style.css +184 -31
- package/dist/collection/components/calendar/generate.js +1 -0
- package/dist/collection/components/calendar/generate.js.map +1 -0
- package/dist/collection/components/calendar/index.js +25 -46
- package/dist/collection/components/calendar/index.js.map +1 -0
- package/dist/collection/components/calendar/style.css +8 -12
- package/dist/collection/components/checkbox/index.js +90 -41
- package/dist/collection/components/checkbox/index.js.map +1 -0
- package/dist/collection/components/checkbox/style.css +56 -9
- package/dist/collection/components/checkbox/translation/index.js +1 -0
- package/dist/collection/components/checkbox/translation/index.js.map +1 -0
- package/dist/collection/components/checkbox/translation/sv.js +1 -0
- package/dist/collection/components/checkbox/translation/sv.js.map +1 -0
- package/dist/collection/components/color/index.js +48 -0
- package/dist/collection/components/color/index.js.map +1 -0
- package/dist/collection/components/color/style.css +69 -0
- package/dist/collection/components/country/index.js +1 -0
- package/dist/collection/components/country/index.js.map +1 -0
- package/dist/collection/components/dialog/index.js +1 -0
- package/dist/collection/components/dialog/index.js.map +1 -0
- package/dist/collection/components/dialog-demo/index.js +1 -0
- package/dist/collection/components/dialog-demo/index.js.map +1 -0
- package/dist/collection/components/display/index.js +1 -0
- package/dist/collection/components/display/index.js.map +1 -0
- package/dist/collection/components/display-amount/index.js +1 -0
- package/dist/collection/components/display-amount/index.js.map +1 -0
- package/dist/collection/components/display-date-time/index.js +1 -0
- package/dist/collection/components/display-date-time/index.js.map +1 -0
- package/dist/collection/components/display-demo/index.js +2 -1
- package/dist/collection/components/display-demo/index.js.map +1 -0
- package/dist/collection/components/filter/Clearable.js +8 -0
- package/dist/collection/components/filter/Clearable.js.map +1 -0
- package/dist/collection/components/filter/index.js +186 -0
- package/dist/collection/components/filter/index.js.map +1 -0
- package/dist/collection/components/filter/input/index.js +376 -0
- package/dist/collection/components/filter/input/index.js.map +1 -0
- package/dist/collection/components/filter/input/style.css +5 -0
- package/dist/collection/components/filter/style.css +106 -0
- package/dist/collection/components/form/Clearable.js +8 -0
- package/dist/collection/components/form/Clearable.js.map +1 -0
- package/dist/collection/components/form/Data.js +15 -0
- package/dist/collection/components/form/Data.js.map +1 -0
- package/dist/collection/components/form/index.js +251 -0
- package/dist/collection/components/form/index.js.map +1 -0
- package/dist/collection/components/form/style.css +50 -0
- package/dist/collection/components/frame/index.js +13 -9
- package/dist/collection/components/frame/index.js.map +1 -0
- package/dist/collection/components/google-font/index.js +1 -0
- package/dist/collection/components/google-font/index.js.map +1 -0
- package/dist/collection/components/icon/index.js +7 -1
- package/dist/collection/components/icon/index.js.map +1 -0
- package/dist/collection/components/icon-demo/index.js +1 -0
- package/dist/collection/components/icon-demo/index.js.map +1 -0
- package/dist/collection/components/input/index.js +38 -10
- package/dist/collection/components/input/index.js.map +1 -0
- package/dist/collection/components/input/style.css +11 -6
- package/dist/collection/components/input-date/index.js +3 -26
- package/dist/collection/components/input-date/index.js.map +1 -0
- package/dist/collection/components/input-date/style.css +4 -4
- package/dist/collection/components/input-date-range/index.js +1 -0
- package/dist/collection/components/input-date-range/index.js.map +1 -0
- package/dist/collection/components/input-demo/index.js +38 -1
- package/dist/collection/components/input-demo/index.js.map +1 -0
- package/dist/collection/components/input-demo/style.css +4 -0
- package/dist/collection/components/input-month/index.js +1 -0
- package/dist/collection/components/input-month/index.js.map +1 -0
- package/dist/collection/components/item/index.js +1 -0
- package/dist/collection/components/item/index.js.map +1 -0
- package/dist/collection/components/menu-options/index.js +1 -0
- package/dist/collection/components/menu-options/index.js.map +1 -0
- package/dist/collection/components/notification/index.js +1 -0
- package/dist/collection/components/notification/index.js.map +1 -0
- package/dist/collection/components/notifier/index.js +1 -0
- package/dist/collection/components/notifier/index.js.map +1 -0
- package/dist/collection/components/option/index.js +1 -0
- package/dist/collection/components/option/index.js.map +1 -0
- package/dist/collection/components/picker/index.js +1 -0
- package/dist/collection/components/picker/index.js.map +1 -0
- package/dist/collection/components/popup/index.js +1 -0
- package/dist/collection/components/popup/index.js.map +1 -0
- package/dist/collection/components/quiet/index.js +1 -0
- package/dist/collection/components/quiet/index.js.map +1 -0
- package/dist/collection/components/radio/index.js +1 -0
- package/dist/collection/components/radio/index.js.map +1 -0
- package/dist/collection/components/radio/style.css +1 -1
- package/dist/collection/components/radio-button/Selected.js +1 -0
- package/dist/collection/components/radio-button/Selected.js.map +1 -0
- package/dist/collection/components/radio-button/index.js +1 -0
- package/dist/collection/components/radio-button/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/index.js +6 -6
- package/dist/collection/components/radio-button/item/index.js.map +1 -0
- package/dist/collection/components/radio-button/item/style.css +4 -19
- package/dist/collection/components/radio-group/index.js +1 -0
- package/dist/collection/components/radio-group/index.js.map +1 -0
- package/dist/collection/components/reorder/Draggable.js +1 -0
- package/dist/collection/components/reorder/Draggable.js.map +1 -0
- package/dist/collection/components/reorder/Dragged.js +1 -0
- package/dist/collection/components/reorder/Dragged.js.map +1 -0
- package/dist/collection/components/reorder/index.js +1 -0
- package/dist/collection/components/reorder/index.js.map +1 -0
- package/dist/collection/components/room/index.js +1 -0
- package/dist/collection/components/room/index.js.map +1 -0
- package/dist/collection/components/select/index.js +1 -0
- package/dist/collection/components/select/index.js.map +1 -0
- package/dist/collection/components/select-demo/index.js +1 -1
- package/dist/collection/components/select-demo/index.js.map +1 -0
- package/dist/collection/components/selector/index.js +1 -0
- package/dist/collection/components/selector/index.js.map +1 -0
- package/dist/collection/components/skeleton/index.js +1 -0
- package/dist/collection/components/skeleton/index.js.map +1 -0
- package/dist/collection/components/spinner/index.js +1 -0
- package/dist/collection/components/spinner/index.js.map +1 -0
- package/dist/collection/components/submit/index.js +59 -116
- package/dist/collection/components/submit/index.js.map +1 -0
- package/dist/collection/components/summary/index.js +92 -0
- package/dist/collection/components/summary/index.js.map +1 -0
- package/dist/collection/components/summary/style.css +31 -0
- package/dist/collection/components/svg/index.js +1 -0
- package/dist/collection/components/svg/index.js.map +1 -0
- package/dist/collection/components/tab/index.js +1 -0
- package/dist/collection/components/tab/index.js.map +1 -0
- package/dist/collection/components/tab-switch/index.js +1 -0
- package/dist/collection/components/tab-switch/index.js.map +1 -0
- package/dist/collection/components/table/Selector.js +44 -0
- package/dist/collection/components/table/Selector.js.map +1 -0
- package/dist/collection/components/table/cell/index.js +1 -0
- package/dist/collection/components/table/cell/index.js.map +1 -0
- package/dist/collection/components/table/cell/style.css +10 -0
- package/dist/collection/components/table/demo/filtered/Root.js +2 -0
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/index.js +66 -0
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -0
- package/dist/collection/components/table/demo/filtered/style.css +3 -0
- package/dist/collection/components/table/demo/index.js +4 -1
- package/dist/collection/components/table/demo/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -5
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -0
- package/dist/collection/components/table/expandable/cell/style.css +10 -0
- package/dist/collection/components/table/expandable/row/index.js +1 -0
- package/dist/collection/components/table/expandable/row/index.js.map +1 -0
- package/dist/collection/components/table/header/index.js +1 -0
- package/dist/collection/components/table/header/index.js.map +1 -0
- package/dist/collection/components/table/header/style.css +11 -0
- package/dist/collection/components/table/index.js +20 -0
- package/dist/collection/components/table/index.js.map +1 -0
- package/dist/collection/components/table/row/index.js +1 -0
- package/dist/collection/components/table/row/index.js.map +1 -0
- package/dist/collection/components/toggle/style.css +36 -0
- package/dist/collection/components/toggle/toggle.js +129 -0
- package/dist/collection/components/toggle/toggle.js.map +1 -0
- package/dist/collection/components/toggle-switch/index.js +118 -0
- package/dist/collection/components/toggle-switch/index.js.map +1 -0
- package/dist/collection/components/toggle-switch/style.css +56 -0
- package/dist/collection/components/trigger/index.js +1 -23
- package/dist/collection/components/trigger/index.js.map +1 -0
- package/dist/collection/components/trigger/style.css +2 -2
- package/dist/collection/components/trigger-sink/index.js +1 -0
- package/dist/collection/components/trigger-sink/index.js.map +1 -0
- package/dist/collection/components/trigger-source/index.js +1 -0
- package/dist/collection/components/trigger-source/index.js.map +1 -0
- package/dist/collection/components/tuple/index.js +1 -0
- package/dist/collection/components/tuple/index.js.map +1 -0
- package/dist/collection/components/urlencoded/index.js +1 -0
- package/dist/collection/components/urlencoded/index.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/model/Autocomplete.js +1 -0
- package/dist/collection/model/Autocomplete.js.map +1 -0
- package/dist/collection/model/ClientIdentifier.js +1 -0
- package/dist/collection/model/ClientIdentifier.js.map +1 -0
- package/dist/collection/model/Color.js +1 -0
- package/dist/collection/model/Color.js.map +1 -0
- package/dist/collection/model/Fill.js +1 -0
- package/dist/collection/model/Fill.js.map +1 -0
- package/dist/collection/model/GoogleFont.js +1 -0
- package/dist/collection/model/GoogleFont.js.map +1 -0
- package/dist/collection/model/Listenable.js +1 -0
- package/dist/collection/model/Listenable.js.map +1 -0
- package/dist/collection/model/Message.js +1 -0
- package/dist/collection/model/Message.js.map +1 -0
- package/dist/collection/model/Notice.js +1 -0
- package/dist/collection/model/Notice.js.map +1 -0
- package/dist/collection/model/Option.js +1 -0
- package/dist/collection/model/Option.js.map +1 -0
- package/dist/collection/model/Trigger.js +1 -0
- package/dist/collection/model/Trigger.js.map +1 -0
- package/dist/collection/model/index.js +1 -0
- package/dist/collection/model/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/CommaRgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hex.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Hsl.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Name.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/Rgb.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/Color/index.js.map +1 -0
- package/dist/collection/utilities/Cosmetic/index.js +1 -0
- package/dist/collection/utilities/Cosmetic/index.js.map +1 -0
- package/dist/collection/utilities/index.js +1 -0
- package/dist/collection/utilities/index.js.map +1 -0
- package/dist/custom-elements/index.d.ts +66 -0
- package/dist/custom-elements/index.js +5708 -644
- package/dist/custom-elements/index.js.map +1 -0
- package/dist/esm/GoogleFont-8474516b.js +2 -0
- package/dist/esm/GoogleFont-8474516b.js.map +1 -0
- package/dist/esm/Listenable-55a1f6af.js +2 -0
- package/dist/esm/Listenable-55a1f6af.js.map +1 -0
- package/dist/esm/getLanguage-cccb8418.js +2 -0
- package/dist/esm/getLanguage-cccb8418.js.map +1 -0
- package/dist/esm/{index-d7a4e405.js → index-2e948fc3.js} +3 -1
- package/dist/esm/index-2e948fc3.js.map +1 -0
- package/dist/esm/{index-d3421c35.js → index-7b57a52c.js} +106 -2
- package/dist/esm/index-7b57a52c.js.map +1 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_60.entry.js} +5423 -460
- package/dist/esm/smoothly-accordion_60.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +28 -0
- package/dist/esm/smoothly-address-display.entry.js.map +1 -0
- package/dist/esm/smoothly-address.entry.js +19 -0
- package/dist/esm/smoothly-address.entry.js.map +1 -0
- package/dist/esm/smoothly-addresses.entry.js +19 -0
- package/dist/esm/smoothly-addresses.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +18 -0
- package/dist/esm/smoothly-color.entry.js.map +1 -0
- package/dist/esm/smoothly-country.entry.js +3 -1
- package/dist/esm/smoothly-country.entry.js.map +1 -0
- package/dist/esm/smoothly-google-font.entry.js +3 -1
- package/dist/esm/smoothly-google-font.entry.js.map +1 -0
- package/dist/esm/smoothly-radio-group.entry.js +3 -1
- package/dist/esm/smoothly-radio-group.entry.js.map +1 -0
- package/dist/esm/smoothly-reorder.entry.js +3 -1
- package/dist/esm/smoothly-reorder.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-sink.entry.js +3 -1
- package/dist/esm/smoothly-trigger-sink.entry.js.map +1 -0
- package/dist/esm/smoothly-trigger-source.entry.js +3 -1
- package/dist/esm/smoothly-trigger-source.entry.js.map +1 -0
- package/dist/esm/smoothly.js +6 -3
- package/dist/esm/smoothly.js.map +1 -0
- package/dist/smoothly/index.esm.js +2 -1
- package/dist/smoothly/index.esm.js.map +1 -0
- package/dist/smoothly/p-156763cd.js +2 -1
- package/dist/smoothly/p-156763cd.js.map +1 -0
- package/dist/smoothly/p-5200d31c.entry.js +2 -0
- package/dist/smoothly/p-5200d31c.entry.js.map +1 -0
- package/dist/smoothly/p-5b28795c.entry.js +2 -0
- package/dist/smoothly/p-5b28795c.entry.js.map +1 -0
- package/dist/smoothly/p-5b6351f6.js +2 -1
- package/dist/smoothly/p-5b6351f6.js.map +1 -0
- package/dist/smoothly/p-70280a11.js +2 -0
- package/dist/smoothly/p-70280a11.js.map +1 -0
- package/dist/smoothly/p-712b362e.entry.js +2 -0
- package/dist/smoothly/p-712b362e.entry.js.map +1 -0
- package/dist/smoothly/p-79025273.entry.js +2 -0
- package/dist/smoothly/p-79025273.entry.js.map +1 -0
- package/dist/smoothly/p-940af6d3.entry.js +2 -0
- package/dist/smoothly/p-940af6d3.entry.js.map +1 -0
- package/dist/smoothly/{p-6630d923.entry.js → p-b49664d8.entry.js} +2 -1
- package/dist/smoothly/p-b49664d8.entry.js.map +1 -0
- package/dist/smoothly/p-bd478a53.js +2 -1
- package/dist/smoothly/p-bd478a53.js.map +1 -0
- package/dist/smoothly/p-c49d2094.entry.js +2 -0
- package/dist/smoothly/p-c49d2094.entry.js.map +1 -0
- package/dist/smoothly/p-c88ae468.js +3 -0
- package/dist/smoothly/p-c88ae468.js.map +1 -0
- package/dist/smoothly/p-c9a64fb5.entry.js +2 -0
- package/dist/smoothly/p-c9a64fb5.entry.js.map +1 -0
- package/dist/smoothly/p-d4182274.entry.js +2 -0
- package/dist/smoothly/p-d4182274.entry.js.map +1 -0
- package/dist/smoothly/p-d4d04558.entry.js +2 -0
- package/dist/smoothly/p-d4d04558.entry.js.map +1 -0
- package/dist/smoothly/p-e136b93e.entry.js +2 -0
- package/dist/smoothly/p-e136b93e.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +2 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -0
- package/dist/types/components/Button.d.ts +10 -0
- package/dist/types/components/address/index.d.ts +6 -0
- package/dist/types/components/address-display/index.d.ts +13 -0
- package/dist/types/components/addresses/index.d.ts +6 -0
- package/dist/types/components/button/index.d.ts +7 -5
- package/dist/types/components/calendar/index.d.ts +1 -3
- package/dist/types/components/checkbox/index.d.ts +6 -7
- package/dist/types/components/color/index.d.ts +5 -0
- package/dist/types/components/filter/Clearable.d.ts +6 -0
- package/dist/types/components/filter/index.d.ts +16 -0
- package/dist/types/components/filter/input/index.d.ts +25 -0
- package/dist/types/components/form/Clearable.d.ts +6 -0
- package/dist/types/components/form/Data.d.ts +9 -0
- package/dist/types/components/form/index.d.ts +20 -0
- package/dist/types/components/frame/index.d.ts +2 -2
- package/dist/types/components/input/index.d.ts +3 -8
- package/dist/types/components/input-date/index.d.ts +0 -2
- package/dist/types/components/radio-button/item/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +7 -11
- package/dist/types/components/summary/index.d.ts +7 -0
- package/dist/types/components/table/Selector.d.ts +10 -0
- package/dist/types/components/table/demo/filtered/Root.d.ts +27 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +13 -0
- package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
- package/dist/types/components/table/index.d.ts +1 -0
- package/dist/types/components/toggle/toggle.d.ts +9 -0
- package/dist/types/components/toggle-switch/index.d.ts +8 -0
- package/dist/types/components/trigger/index.d.ts +1 -2
- package/dist/types/components.d.ts +286 -31
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +20 -0
- package/loader/index.d.ts +9 -0
- package/package.json +6 -3
- package/dist/collection/components/submit/Data.js +0 -12
- package/dist/collection/components/submit/style.css +0 -37
- package/dist/collection/model/Expand.js +0 -1
- package/dist/smoothly/p-4a0b35b7.js +0 -2
- package/dist/smoothly/p-4fecfc5d.entry.js +0 -1
- package/dist/smoothly/p-5d41e3ca.entry.js +0 -1
- package/dist/smoothly/p-7d95afef.entry.js +0 -1
- package/dist/smoothly/p-7db49a38.entry.js +0 -1
- package/dist/smoothly/p-94e08cee.js +0 -1
- package/dist/smoothly/p-96e8781a.entry.js +0 -1
- package/dist/smoothly/p-e0f4957d.entry.js +0 -1
- package/dist/types/components/submit/Data.d.ts +0 -7
- package/dist/types/model/Expand.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AAO5C,MAAM,OAAO,SAAS;EACrB,MAAM;IACL,OAAO;MACN,yCAAiC;MACjC,uCAA6D;MAE7D;QACC;UACC,4CAAuD;UACvD,4CAAuD;UACvD,4CAAuD;UACvD,4CAAuD,CACnC;QACrB;UACC;;YAEC,WAAK,IAAI,EAAC,QAAQ,gCAAgC,CAClB;UACjC;;YAEC,WAAK,IAAI,EAAC,QAAQ,gCAAgC,CAClB;UACjC;;YAEC,WAAK,IAAI,EAAC,QAAQ,gCAAgC,CAClB;UACjC;;YAEC,WAAK,IAAI,EAAC,QAAQ,gCAAgC,CAClB,CACb;QAErB;UACC,yDAAiE;UACjE,6CAAsD;UACtD;;YAEC,WAAK,IAAI,EAAC,QAAQ,+BAA+B,CACjB;UACjC;;YAEC,WAAK,IAAI,EAAC,QAAQ,+BAA+B,CACjB,CACb;QAErB;UACC,2DAAoE;UACpE,6CAAsD;UACtD,6CAAsD;UACtD,6CAAsD;UACtD,WAAK,IAAI,EAAC,QAAQ,6BAA6B,CAChB,CAChB;MACjB;QACC;UACC,4CAAuD,CACnC;QACrB;UACC,2CAAoD;UACpD,WAAK,IAAI,EAAC,QAAQ;YACjB;cACC,oBAAc,KAAK,EAAC,cAAc,EAAC,IAAI,EAAE,IAAI;gBAC5C;kBACC;oBACC,4CAAuD,CACnC;kBACrB,qDAAwE,CACxD,CACH;cACf,oBAAc,KAAK,EAAC,cAAc;gBACjC;kBACC;oBACC,4CAAuD,CACnC;kBACrB;oBACC,2CAAoD,CACrB,CAChB,CACH,CACM,CACjB,CACyB,CAChB;MACjB;QACC;UACC,qCAAgD;UAChD,qCAAgD,CAC5B;QACrB;UACC,uCAAgD;UAChD,uCAAgD;UAChD,WAAK,IAAI,EAAC,QAAQ;YACjB;cACC;gBACC,qCAAgD;gBAChD,qCAAgD,CAC5B;cACrB;gBACC,mCAA4C;gBAC5C,mCAA4C;gBAC5C,WAAK,IAAI,EAAC,QAAQ;kBACjB;oBACC;sBACC,qCAAgD;sBAChD,qCAAgD,CAC5B;oBACrB;sBACC,uCAAgD;sBAChD,uCAAgD;sBAChD,WAAK,IAAI,EAAC,QAAQ,0CAA0C,CAC7B,CAChB,CACZ,CACyB,CAChB,CACZ,CACyB;QAChC;UACC;YACC,sBAAgB;YAChB,sBAAgB;YAChB,wBAAkB,CACG;UACtB;;YACK,qBAAe,IAAI,EAAC,mBAAmB,EAAC,IAAI,EAAC,OAAO,GAAiB,CACpD;UACtB,WAAK,IAAI,EAAC,QAAQ,WAAW,CACE;QAChC;UACC;;YAEC,WAAK,IAAI,EAAC,QAAQ;cACjB;gBACC;kBACC,qCAAgD;kBAChD,qCAAgD,CAC5B;gBACrB;kBACC;;oBAEC,WAAK,IAAI,EAAC,QAAQ,yCAAyC,CAC3B;kBACjC;;oBAEC,WAAK,IAAI,EAAC,QAAQ,yCAAyC,CAC3B,CACb,CACL,CACZ,CAC0B;UACjC;;YAEC,WAAK,IAAI,EAAC,QAAQ;cACjB;gBACC;kBACC,qCAAgD;kBAChD,qCAAgD,CAC5B;gBACrB;kBACC;;oBAEC,WAAK,IAAI,EAAC,QAAQ,yCAAyC,CAC3B;kBACjC;;oBAEC,WAAK,IAAI,EAAC,QAAQ,yCAAyC,CAC3B,CACb,CACL,CACZ,CAC0B,CACb,CACL;MACjB;QACC;UACC,2CAAsD;UACtD,4CAAuD,CACnC;QACrB;UACC,WAAK,KAAK,EAAE,SAAS;YACpB,mCAA4C;YAC5C,mCAA4C,CACvC;UACN,WAAK,IAAI,EAAC,QAAQ,gBAAgB,CACH,CAChB;KACjB,CAAA;EACF,CAAC;;;;;;;;;CACD","sourcesContent":["import { Component, h } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-demo\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableDemo {\n\trender() {\n\t\treturn [\n\t\t\t<h4>Filtered & Checked Table</h4>,\n\t\t\t<smoothly-table-demo-filtered></smoothly-table-demo-filtered>,\n\n\t\t\t<smoothly-table>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-header>Header A</smoothly-table-header>\n\t\t\t\t\t<smoothly-table-header>Header B</smoothly-table-header>\n\t\t\t\t\t<smoothly-table-header>Header C</smoothly-table-header>\n\t\t\t\t\t<smoothly-table-header>Header D</smoothly-table-header>\n\t\t\t\t</smoothly-table-row>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\tnormal row (exp.cell)\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell 1 content</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\texpandable cell\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell 2 content</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\texpandable cell\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell 3 content</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\texpandable cell\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell 4 content</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t</smoothly-table-row>\n\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-cell>normal row (nor.cell)\"</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>normal cell</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\texpandable cell\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell details.</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\texpandable cell\n\t\t\t\t\t\t<div slot=\"detail\">expandable cell details.</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t</smoothly-table-row>\n\n\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t<smoothly-table-cell>expandable row (nor.cell)</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>Normal cell</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>normal cell</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>Normal cell</smoothly-table-cell>\n\t\t\t\t\t<div slot=\"detail\">expandable row content</div>\n\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t</smoothly-table>,\n\t\t\t<smoothly-table>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-header>Header A</smoothly-table-header>\n\t\t\t\t</smoothly-table-row>\n\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t<smoothly-table-cell>A Content</smoothly-table-cell>\n\t\t\t\t\t<div slot=\"detail\">\n\t\t\t\t\t\t<smoothly-tab-switch>\n\t\t\t\t\t\t\t<smoothly-tab label=\"innertable 1\" open={true}>\n\t\t\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t\t<smoothly-table-header>Header B</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-row>B Content</smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t\t\t<smoothly-tab label=\"innertable 2\">\n\t\t\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t\t<smoothly-table-header>Header C</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t\t\t<smoothly-table-cell>C Content</smoothly-table-cell>\n\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t\t\t</smoothly-tab>\n\t\t\t\t\t\t</smoothly-tab-switch>\n\t\t\t\t\t</div>\n\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t</smoothly-table>,\n\t\t\t<smoothly-table>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-header>A</smoothly-table-header>\n\t\t\t\t\t<smoothly-table-header>B</smoothly-table-header>\n\t\t\t\t</smoothly-table-row>\n\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t<smoothly-table-cell>a row</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>b row</smoothly-table-cell>\n\t\t\t\t\t<div slot=\"detail\">\n\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t<smoothly-table-header>C</smoothly-table-header>\n\t\t\t\t\t\t\t\t<smoothly-table-header>D</smoothly-table-header>\n\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t<smoothly-table-cell>c</smoothly-table-cell>\n\t\t\t\t\t\t\t\t<smoothly-table-cell>d</smoothly-table-cell>\n\t\t\t\t\t\t\t\t<div slot=\"detail\">\n\t\t\t\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t\t\t<smoothly-table-header>E</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t\t\t<smoothly-table-header>F</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t\t\t\t<smoothly-table-cell>e row</smoothly-table-cell>\n\t\t\t\t\t\t\t\t\t\t\t<smoothly-table-cell>f row</smoothly-table-cell>\n\t\t\t\t\t\t\t\t\t\t\t<div slot=\"detail\">nested expandable row expansion e f</div>\n\t\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t</div>\n\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t<smoothly-table-cell>\n\t\t\t\t\t\t<span>one</span>\n\t\t\t\t\t\t<span>two</span>\n\t\t\t\t\t\t<span>three</span>\n\t\t\t\t\t</smoothly-table-cell>\n\t\t\t\t\t<smoothly-table-cell>\n\t\t\t\t\t\tfive<smoothly-icon name=\"paper-plane-sharp\" size=\"small\"></smoothly-icon>\n\t\t\t\t\t</smoothly-table-cell>\n\t\t\t\t\t<div slot=\"detail\">four</div>\n\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\ta cell\n\t\t\t\t\t\t<div slot=\"detail\">\n\t\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-header>E</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t<smoothly-table-header>F</smoothly-table-header>\n\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t\te cell\n\t\t\t\t\t\t\t\t\t\t<div slot=\"detail\">nested expandable cell expansion e</div>\n\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t\tf cell\n\t\t\t\t\t\t\t\t\t\t<div slot=\"detail\">nested expandable cell expansion f</div>\n\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\tb cell\n\t\t\t\t\t\t<div slot=\"detail\">\n\t\t\t\t\t\t\t<smoothly-table>\n\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-header>C</smoothly-table-header>\n\t\t\t\t\t\t\t\t\t<smoothly-table-header>D</smoothly-table-header>\n\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t\tc cell\n\t\t\t\t\t\t\t\t\t\t<div slot=\"detail\">nested expandable cell expansion c</div>\n\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t<smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t\t\td cell\n\t\t\t\t\t\t\t\t\t\t<div slot=\"detail\">nested expandable cell expansion d</div>\n\t\t\t\t\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t\t\t\t\t</smoothly-table-row>\n\t\t\t\t\t\t\t</smoothly-table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</smoothly-table-expandable-cell>\n\t\t\t\t</smoothly-table-row>\n\t\t\t</smoothly-table>,\n\t\t\t<smoothly-table>\n\t\t\t\t<smoothly-table-row>\n\t\t\t\t\t<smoothly-table-header>display</smoothly-table-header>\n\t\t\t\t\t<smoothly-table-header>contents</smoothly-table-header>\n\t\t\t\t</smoothly-table-row>\n\t\t\t\t<smoothly-table-expandable-row>\n\t\t\t\t\t<div class={\"content\"}>\n\t\t\t\t\t\t<smoothly-table-cell>A</smoothly-table-cell>\n\t\t\t\t\t\t<smoothly-table-cell>B</smoothly-table-cell>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div slot=\"detail\">expansion</div>\n\t\t\t\t</smoothly-table-expandable-row>\n\t\t\t</smoothly-table>,\n\t\t]\n\t}\n}\n"]}
|
|
@@ -29,11 +29,6 @@ export class TableExpandableCell {
|
|
|
29
29
|
this.expansionOpen.emit(this.expansionElement);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
componentDidLoad() {
|
|
33
|
-
var _a;
|
|
34
|
-
if (this.open && this.expansionElement)
|
|
35
|
-
(_a = this.element.parentElement) === null || _a === void 0 ? void 0 : _a.after(this.expansionElement);
|
|
36
|
-
}
|
|
37
32
|
onClick() {
|
|
38
33
|
this.open = !this.open;
|
|
39
34
|
}
|
|
@@ -197,3 +192,4 @@ export class TableExpandableCell {
|
|
|
197
192
|
}];
|
|
198
193
|
}
|
|
199
194
|
}
|
|
195
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/expandable/cell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EAET,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACL,MAAM,eAAe,CAAA;AAOtB,MAAM,OAAO,mBAAmB;;0BAIL,IAAI;qBACT,IAAI;iBACoB,MAAM;;;EAOnD,WAAW,CAAC,KAAc;IACzB,IAAI,IAAI,CAAC,gBAAgB;MACxB,IAAI,KAAK;QACR,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;;QAErB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IAC5C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;EACtC,CAAC;EAGD,eAAe;IACd,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,CAAA;EAClD,CAAC;EACD,iBAAiB;IAChB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACzB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;MACxB,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;KACrE,CAAC,CAAA;EACH,CAAC;EACD,kBAAkB;IACjB,IAAI,IAAI,CAAC,SAAS,EAAE;MACnB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAA;MACtB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;KAC9C;EACF,CAAC;EAED,OAAO;IACN,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;EACvB,CAAC;EAED,iBAAiB,CAAC,KAAgD;IACjE,KAAK,CAAC,eAAe,EAAE,CAAA;IACvB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;EAC3B,CAAC;EACD,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE;MACrC;QACC,qBAAe,IAAI,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,GAAiB;QAClE,eAAa,CACN;MACR,UAAI,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAClF,UAAI,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;UAChD,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACD,CACC,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tComponentWillLoad,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\tWatch,\n} from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-expandable-cell\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableExpandableCell implements ComponentWillLoad {\n\tprivate expansionElement?: HTMLTableRowElement\n\tprivate beginOpen: boolean\n\t@Element() element: HTMLSmoothlyTableExpandableCellElement\n\t@State() allowSpotlight = true\n\t@State() spotlight = true\n\t@Prop() align: \"left\" | \"center\" | \"right\" = \"left\"\n\t@Prop({ mutable: true, reflect: true }) open: boolean\n\t@Event() expansionOpen: EventEmitter<HTMLElement>\n\t@Event() expansionLoad: EventEmitter<void>\n\t@Event() expandableChange: EventEmitter<boolean>\n\t@Event() expandableLoad: EventEmitter<{ allowSpotlight: (allowed: boolean) => void }>\n\t@Watch(\"open\")\n\topenChanged(value: boolean) {\n\t\tif (this.expansionElement)\n\t\t\tif (value)\n\t\t\t\tthis.beginOpen = true\n\t\t\telse\n\t\t\t\tthis.element.append(this.expansionElement)\n\t\tthis.expandableChange.emit(this.open)\n\t}\n\t@Watch(\"open\")\n\t@Watch(\"allowSpotlight\")\n\thandleSpotlight() {\n\t\tthis.spotlight = this.open && this.allowSpotlight\n\t}\n\tcomponentWillLoad(): void {\n\t\tthis.expansionLoad.emit()\n\t\tthis.expandableLoad.emit({\n\t\t\tallowSpotlight: (allowed: boolean) => (this.allowSpotlight = allowed),\n\t\t})\n\t}\n\tcomponentDidRender(): void {\n\t\tif (this.beginOpen) {\n\t\t\tthis.beginOpen = false\n\t\t\tthis.expansionOpen.emit(this.expansionElement)\n\t\t}\n\t}\n\t@Listen(\"click\")\n\tonClick() {\n\t\tthis.open = !this.open\n\t}\n\t@Listen(\"tableLoad\")\n\thandleTableLoaded(event: CustomEvent<(owner: EventTarget) => void>) {\n\t\tevent.stopPropagation()\n\t\tevent.detail(this.element)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host style={{ textAlign: this.align }}>\n\t\t\t\t<aside>\n\t\t\t\t\t<smoothly-icon name=\"chevron-forward\" size=\"tiny\"></smoothly-icon>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</aside>\n\t\t\t\t<tr class={this.spotlight ? \"spotlight\" : \"\"} ref={e => (this.expansionElement = e)}>\n\t\t\t\t\t<td colSpan={999} class={!this.open ? \"hide\" : \"\"}>\n\t\t\t\t\t\t<slot name=\"detail\"></slot>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -69,3 +69,13 @@ td::slotted(*)::after {
|
|
|
69
69
|
border-top: 1px solid rgb(var(--smoothly-dark-color));
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
smoothly-table[align=bottom] :host {
|
|
73
|
+
vertical-align: bottom;
|
|
74
|
+
}
|
|
75
|
+
smoothly-table[align=middle] :host {
|
|
76
|
+
vertical-align: middle;
|
|
77
|
+
text-align: left;
|
|
78
|
+
}
|
|
79
|
+
smoothly-table[align=top] :host {
|
|
80
|
+
vertical-align: top;
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/table/expandable/row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EAET,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,GACL,MAAM,eAAe,CAAA;AAOtB,MAAM,OAAO,kBAAkB;;0BAGJ,IAAI;qBACT,IAAI;iBACoB,MAAM;;;EAMnD,WAAW;IACV,IAAI,IAAI,CAAC,gBAAgB;MACxB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IAC1C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;EACtC,CAAC;EAGD,eAAe;IACd,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,CAAA;EAClD,CAAC;EACD,iBAAiB;IAChB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;MACxB,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;KACrE,CAAC,CAAA;EACH,CAAC;EACD,kBAAkB;IACjB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IAC9C,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,IAAI;MACrC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;EAC3C,CAAC;EAED,OAAO,CAAC,KAAc;IACrB,KAAK,CAAC,eAAe,EAAE,CAAA;IACvB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;EACvB,CAAC;EAED,iBAAiB,CAAC,KAAgD;IACjE,KAAK,CAAC,eAAe,EAAE,CAAA;IACvB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;EAC3B,CAAC;EACD,MAAM;IACL,OAAO,CACN,EAAC,IAAI,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE;MACrC,eAAa;MACb,UAAI,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAClF,UAAI,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;UAChD,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB,CACD,CACC,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {\n\tComponent,\n\tComponentWillLoad,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n\tWatch,\n} from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-expandable-row\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableExpandableRow implements ComponentWillLoad {\n\tprivate expansionElement?: HTMLTableRowElement\n\t@Element() element: HTMLSmoothlyTableRowElement\n\t@State() allowSpotlight = true\n\t@State() spotlight = true\n\t@Prop() align: \"left\" | \"center\" | \"right\" = \"left\"\n\t@Prop({ mutable: true, reflect: true }) open: boolean\n\t@Event() expansionOpen: EventEmitter<HTMLElement>\n\t@Event() expandableChange: EventEmitter<boolean>\n\t@Event() expandableLoad: EventEmitter<{ allowSpotlight: (allowed: boolean) => void }>\n\t@Watch(\"open\")\n\topenChanged() {\n\t\tif (this.expansionElement)\n\t\t\tthis.element.after(this.expansionElement)\n\t\tthis.expandableChange.emit(this.open)\n\t}\n\t@Watch(\"open\")\n\t@Watch(\"allowSpotlight\")\n\thandleSpotlight() {\n\t\tthis.spotlight = this.open && this.allowSpotlight\n\t}\n\tcomponentWillLoad() {\n\t\tthis.expandableLoad.emit({\n\t\t\tallowSpotlight: (allowed: boolean) => (this.allowSpotlight = allowed),\n\t\t})\n\t}\n\tcomponentDidRender(): void {\n\t\tthis.expansionOpen.emit(this.expansionElement)\n\t\tif (this.expansionElement && this.open)\n\t\t\tthis.element.after(this.expansionElement)\n\t}\n\t@Listen(\"click\")\n\tonClick(event: UIEvent) {\n\t\tevent.stopPropagation()\n\t\tthis.open = !this.open\n\t}\n\t@Listen(\"tableLoad\")\n\thandleTableLoaded(event: CustomEvent<(owner: EventTarget) => void>) {\n\t\tevent.stopPropagation()\n\t\tevent.detail(this.element)\n\t}\n\trender() {\n\t\treturn (\n\t\t\t<Host style={{ textAlign: this.align }}>\n\t\t\t\t<slot></slot>\n\t\t\t\t<tr class={this.spotlight ? \"spotlight\" : \"\"} ref={e => (this.expansionElement = e)}>\n\t\t\t\t\t<td colSpan={999} class={!this.open ? \"hide\" : \"\"}>\n\t\t\t\t\t\t<slot name=\"detail\"></slot>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOxD,MAAM,OAAO,WAAW;;;;EAEvB,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,eAAa,CACP,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-header\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableHeader {\n\t@Prop() name: string\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -6,3 +6,14 @@
|
|
|
6
6
|
padding-left: 1rem;
|
|
7
7
|
font-weight: bold;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
smoothly-table[align=bottom] :host {
|
|
11
|
+
vertical-align: bottom;
|
|
12
|
+
}
|
|
13
|
+
smoothly-table[align=middle] :host {
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
text-align: left;
|
|
16
|
+
}
|
|
17
|
+
smoothly-table[align=top] :host {
|
|
18
|
+
vertical-align: top;
|
|
19
|
+
}
|
|
@@ -4,6 +4,7 @@ export class Table {
|
|
|
4
4
|
this.expandable = new Map();
|
|
5
5
|
this.expanded = new Set();
|
|
6
6
|
this.root = true;
|
|
7
|
+
this.align = "middle";
|
|
7
8
|
}
|
|
8
9
|
componentWillLoad() {
|
|
9
10
|
this.smoothlyNestedTable.emit(() => (this.root = false));
|
|
@@ -64,6 +65,24 @@ export class Table {
|
|
|
64
65
|
"attribute": "root",
|
|
65
66
|
"reflect": true,
|
|
66
67
|
"defaultValue": "true"
|
|
68
|
+
},
|
|
69
|
+
"align": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "\"middle\" | \"bottom\" | \"top\"",
|
|
74
|
+
"resolved": "\"bottom\" | \"middle\" | \"top\"",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": false,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": ""
|
|
82
|
+
},
|
|
83
|
+
"attribute": "align",
|
|
84
|
+
"reflect": true,
|
|
85
|
+
"defaultValue": "\"middle\""
|
|
67
86
|
}
|
|
68
87
|
};
|
|
69
88
|
}
|
|
@@ -164,3 +183,4 @@ export class Table {
|
|
|
164
183
|
}];
|
|
165
184
|
}
|
|
166
185
|
}
|
|
186
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAO3G,MAAM,OAAO,KAAK;;IAET,eAAU,GAAiF,IAAI,GAAG,EAAE,CAAA;IACpG,aAAQ,GAAqB,IAAI,GAAG,EAAE,CAAA;gBAEC,IAAI;iBACW,QAAQ;;EAItE,iBAAiB;IAChB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAA;IACxD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAA;EAClE,CAAC;EAED,sBAAsB,CAAC,KAAkE;IACxF,KAAK,CAAC,eAAe,EAAE,CAAA;IACvB,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;EAChE,CAAC;EAED,qBAAqB,CAAC,KAA2B;IAChD,KAAK,CAAC,eAAe,EAAE,CAAA;IACvB,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;IACrG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;EACtF,CAAC;EAED,oBAAoB,CAAC,KAAoE;;IACxF,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO;MAC3B,CAAC,KAAK,CAAC,eAAe,EAAE;QACxB,KAAK,CAAC,MAAM,CAAC,KAAK,KAAI,MAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,0CAAE,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA,CAAC,CAAA;EAC7G,CAAC;EAED,iBAAiB,CAAC,KAA8B;IAC/C,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAA;EAC1E,CAAC;EAGD,YAAY,CAAC,KAAY;IACxB,KAAK,CAAC,eAAe,EAAE,CAAA;EACxB,CAAC;EACD,MAAM;IACL,OAAO,CAAC,eAAa,CAAC,CAAA;EACvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, ComponentWillLoad, Element, Event, EventEmitter, h, Listen, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class Table implements ComponentWillLoad {\n\tprivate owner?: EventTarget\n\tprivate expandable: Map<EventTarget, { allowSpotlight: (allowed: boolean) => void } | undefined> = new Map()\n\tprivate expanded: Set<EventTarget> = new Set()\n\t@Element() element: HTMLSmoothlyTableElement\n\t@Prop({ mutable: true, reflect: true }) root = true\n\t@Prop({ reflect: true }) align: \"middle\" | \"bottom\" | \"top\" = \"middle\"\n\t@Event() smoothlyNestedTable: EventEmitter<() => void>\n\t@Event() spotlightChange: EventEmitter<{ allowSpotlight: boolean; owner?: EventTarget }>\n\t@Event() tableLoad: EventEmitter<(owner: EventTarget) => void>\n\tcomponentWillLoad() {\n\t\tthis.smoothlyNestedTable.emit(() => (this.root = false))\n\t\tthis.tableLoad.emit((owner: EventTarget) => (this.owner = owner))\n\t}\n\t@Listen(\"expandableLoad\")\n\thandleExpandableLoaded(event: CustomEvent<{ allowSpotlight: (allowed: boolean) => void }>) {\n\t\tevent.stopPropagation()\n\t\tevent.target && this.expandable.set(event.target, event.detail)\n\t}\n\t@Listen(\"expandableChange\")\n\thandleExpandableState(event: CustomEvent<boolean>) {\n\t\tevent.stopPropagation()\n\t\tevent.target && (event.detail ? this.expanded.add(event.target) : this.expanded.delete(event.target))\n\t\tthis.spotlightChange.emit({ allowSpotlight: !this.expanded.size, owner: this.owner })\n\t}\n\t@Listen(\"spotlightChange\")\n\thandleSpotlightState(event: CustomEvent<{ allowSpotlight: boolean; owner?: EventTarget }>) {\n\t\tevent.target != this.element &&\n\t\t\t(event.stopPropagation(),\n\t\t\tevent.detail.owner && this.expandable.get(event.detail.owner)?.allowSpotlight(event.detail.allowSpotlight))\n\t}\n\t@Listen(\"smoothlyNestedTable\")\n\thandleNestedTable(event: CustomEvent<() => void>) {\n\t\tevent.target != this.element && (event.stopPropagation(), event.detail())\n\t}\n\t@Listen(\"expansionLoad\")\n\t@Listen(\"expansionOpen\")\n\thandleEvents(event: Event) {\n\t\tevent.stopPropagation()\n\t}\n\trender() {\n\t\treturn [<slot></slot>]\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/table/row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAO7D,MAAM,OAAO,QAAQ;EALrB;IAOC,eAAU,GAA6C,EAAE,CAAA;GAiBzD;EAfA,eAAe,CAAC,KAAwB;IACvC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,MAAgD,CAAC,CAAA;EAC7E,CAAC;EAED,eAAe,CAAC,KAA2C;IAC1D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;MAC9B,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM;QACvB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,IAAI,KAAK,CAAC,MAAM;MACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;EAClC,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Listen } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-table-row\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class TableRow {\n\t@Element() element: HTMLSmoothlyTableRowElement\n\texpansions: HTMLSmoothlyTableExpandableCellElement[] = []\n\t@Listen(\"expansionLoad\")\n\tonExpansionLoad(event: CustomEvent<void>) {\n\t\tthis.expansions.push(event.target as HTMLSmoothlyTableExpandableCellElement)\n\t}\n\t@Listen(\"expansionOpen\")\n\tonExpansionOpen(event: CustomEvent<HTMLElement | undefined>) {\n\t\tthis.expansions.forEach(cell => {\n\t\t\tif (cell != event.target)\n\t\t\t\tcell.open = false\n\t\t})\n\t\tif (event.detail)\n\t\t\tthis.element.after(event.detail)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:host{
|
|
2
|
+
display: inline-block;
|
|
3
|
+
border: none;
|
|
4
|
+
}
|
|
5
|
+
button{
|
|
6
|
+
border: solid white 0.5px;
|
|
7
|
+
display: flex;
|
|
8
|
+
padding: 0.6em;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
font-size: 110%;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
color: rgb(var(--smoothly-default-tint));
|
|
13
|
+
background-color: rgb(var(--smoothly-default-shade));
|
|
14
|
+
}
|
|
15
|
+
:host([shape=rounded]){
|
|
16
|
+
border-radius: 0.6em;
|
|
17
|
+
}
|
|
18
|
+
:host([shape=rounded]) > button {
|
|
19
|
+
border-radius: 0.5em;
|
|
20
|
+
}
|
|
21
|
+
:host([selected]) > button{
|
|
22
|
+
color: rgb(var(--smoothly-light-contrast));
|
|
23
|
+
}
|
|
24
|
+
::slotted(smoothly-icon){
|
|
25
|
+
stroke: rgb(var(--smoothly-default-contrast));
|
|
26
|
+
fill: rgb(var(--smoothly-default-contrast));
|
|
27
|
+
font-size: 110%;
|
|
28
|
+
}
|
|
29
|
+
:host(:not([selected])) > ::slotted(smoothly-icon) {
|
|
30
|
+
color: rgb(var(--smoothly-default-tint));
|
|
31
|
+
fill:rgb(var(--smoothly-default-tint));
|
|
32
|
+
}
|
|
33
|
+
:host([disabled]) {
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class SmoothlyToggle {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.selected = false;
|
|
5
|
+
this.shape = undefined;
|
|
6
|
+
this.disabled = false;
|
|
7
|
+
this.name = undefined;
|
|
8
|
+
this.value = undefined;
|
|
9
|
+
}
|
|
10
|
+
onClick(e) {
|
|
11
|
+
this.selected = !this.selected;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h("button", null, h("slot", { name: "icon-slot" }), h("slot", null, this.name)));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "smoothly-toggle"; }
|
|
17
|
+
static get encapsulation() { return "scoped"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["style.css"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["style.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"selected": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"mutable": true,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "boolean",
|
|
35
|
+
"resolved": "boolean",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "selected",
|
|
45
|
+
"reflect": true,
|
|
46
|
+
"defaultValue": "false"
|
|
47
|
+
},
|
|
48
|
+
"shape": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "\"rounded\"",
|
|
53
|
+
"resolved": "\"rounded\"",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": ""
|
|
61
|
+
},
|
|
62
|
+
"attribute": "shape",
|
|
63
|
+
"reflect": true
|
|
64
|
+
},
|
|
65
|
+
"disabled": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "boolean",
|
|
70
|
+
"resolved": "boolean",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "disabled",
|
|
80
|
+
"reflect": true,
|
|
81
|
+
"defaultValue": "false"
|
|
82
|
+
},
|
|
83
|
+
"name": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "string",
|
|
88
|
+
"resolved": "string",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": ""
|
|
96
|
+
},
|
|
97
|
+
"attribute": "name",
|
|
98
|
+
"reflect": false
|
|
99
|
+
},
|
|
100
|
+
"value": {
|
|
101
|
+
"type": "any",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "any",
|
|
105
|
+
"resolved": "any",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": true,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"attribute": "value",
|
|
115
|
+
"reflect": false
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static get listeners() {
|
|
120
|
+
return [{
|
|
121
|
+
"name": "click",
|
|
122
|
+
"method": "onClick",
|
|
123
|
+
"target": undefined,
|
|
124
|
+
"capture": false,
|
|
125
|
+
"passive": false
|
|
126
|
+
}];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/toggle/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAO1D,MAAM,OAAO,cAAc;;oBACyB,KAAK;;oBAEpB,KAAK;;;;EAKzC,OAAO,CAAC,CAAU;IACjB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAA;EAC/B,CAAC;EAED,MAAM;IACL,OAAO,CACN;MACC,YAAM,IAAI,EAAC,WAAW,GAAQ;MAC9B,gBAAO,IAAI,CAAC,IAAI,CAAQ,CAChB,CACT,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Listen, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-toggle\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyToggle {\n\t@Prop({ mutable: true, reflect: true }) selected = false\n\t@Prop({ reflect: true }) shape: \"rounded\"\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop() name: string\n\t@Prop() value?: any\n\n\t@Listen(\"click\")\n\tonClick(e: UIEvent) {\n\t\tthis.selected = !this.selected\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<button>\n\t\t\t\t<slot name=\"icon-slot\"></slot>\n\t\t\t\t<slot>{this.name}</slot>\n\t\t\t</button>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class SmoothlyToggleSwitch {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.selected = false;
|
|
5
|
+
this.disabled = false;
|
|
6
|
+
this.size = "default";
|
|
7
|
+
this.name = undefined;
|
|
8
|
+
this.value = undefined;
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null, h("button", { disabled: this.disabled, id: "toggleBtn", onClick: () => (this.selected = !this.selected) }, h("smoothly-icon", { name: "checkmark-circle", fill: "clear", style: { display: this.selected ? "" : "none" } }), h("smoothly-icon", { name: "close-circle", fill: "clear", style: { display: !this.selected ? "" : "none" } }))));
|
|
12
|
+
}
|
|
13
|
+
static get is() { return "smoothly-toggle-switch"; }
|
|
14
|
+
static get encapsulation() { return "shadow"; }
|
|
15
|
+
static get originalStyleUrls() {
|
|
16
|
+
return {
|
|
17
|
+
"$": ["style.css"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
static get styleUrls() {
|
|
21
|
+
return {
|
|
22
|
+
"$": ["style.css"]
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static get properties() {
|
|
26
|
+
return {
|
|
27
|
+
"selected": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"mutable": true,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "boolean",
|
|
32
|
+
"resolved": "boolean",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": ""
|
|
40
|
+
},
|
|
41
|
+
"attribute": "selected",
|
|
42
|
+
"reflect": true,
|
|
43
|
+
"defaultValue": "false"
|
|
44
|
+
},
|
|
45
|
+
"disabled": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "boolean",
|
|
50
|
+
"resolved": "boolean",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": ""
|
|
58
|
+
},
|
|
59
|
+
"attribute": "disabled",
|
|
60
|
+
"reflect": true,
|
|
61
|
+
"defaultValue": "false"
|
|
62
|
+
},
|
|
63
|
+
"size": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "\"small\" | \"default\" | \"large\"",
|
|
68
|
+
"resolved": "\"default\" | \"large\" | \"small\"",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": ""
|
|
76
|
+
},
|
|
77
|
+
"attribute": "size",
|
|
78
|
+
"reflect": true,
|
|
79
|
+
"defaultValue": "\"default\""
|
|
80
|
+
},
|
|
81
|
+
"name": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "string",
|
|
86
|
+
"resolved": "string",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": ""
|
|
94
|
+
},
|
|
95
|
+
"attribute": "name",
|
|
96
|
+
"reflect": false
|
|
97
|
+
},
|
|
98
|
+
"value": {
|
|
99
|
+
"type": "any",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "any",
|
|
103
|
+
"resolved": "any",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": true,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": ""
|
|
111
|
+
},
|
|
112
|
+
"attribute": "value",
|
|
113
|
+
"reflect": false
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toggle-switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAOxD,MAAM,OAAO,oBAAoB;;oBACmB,KAAK;oBACpB,KAAK;gBACsB,SAAS;;;;EAGxE,MAAM;IACL,OAAO,CACN,EAAC,IAAI;MACJ,cAAQ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9F,qBACC,IAAI,EAAC,kBAAkB,EACvB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,GAAkB;QAClE,qBACC,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,GAAkB,CAC3D,CACH,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Host, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-toggle-switch\",\n\tstyleUrl: \"style.css\",\n\tshadow: true,\n})\nexport class SmoothlyToggleSwitch {\n\t@Prop({ mutable: true, reflect: true }) selected = false\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) size: \"small\" | \"default\" | \"large\" = \"default\"\n\t@Prop() name: string\n\t@Prop() value?: any\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<button disabled={this.disabled} id=\"toggleBtn\" onClick={() => (this.selected = !this.selected)}>\n\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\tname=\"checkmark-circle\"\n\t\t\t\t\t\tfill=\"clear\"\n\t\t\t\t\t\tstyle={{ display: this.selected ? \"\" : \"none\" }}></smoothly-icon>\n\t\t\t\t\t<smoothly-icon\n\t\t\t\t\t\tname=\"close-circle\"\n\t\t\t\t\t\tfill=\"clear\"\n\t\t\t\t\t\tstyle={{ display: !this.selected ? \"\" : \"none\" }}></smoothly-icon>\n\t\t\t\t</button>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
margin: 1em 0;
|
|
4
|
+
width: 3.6em;
|
|
5
|
+
height: 1.8em;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
button {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
position: relative;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: 3em;
|
|
18
|
+
background-color: rgb(var(--smoothly-light-color));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host smoothly-icon {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
align-items: center;
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: 0;
|
|
27
|
+
fill: rgb(var(--smoothly-default-color));
|
|
28
|
+
stroke: rgb(var(--smoothly-default-color));
|
|
29
|
+
font-size: 1.2em;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([size=small]){
|
|
33
|
+
width: 3.05em;
|
|
34
|
+
height: 1.5em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([size=large]){
|
|
38
|
+
width: 5.2em;
|
|
39
|
+
height: 2.5em;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([size=small]) smoothly-icon{
|
|
43
|
+
font-size: 1em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([size=large]) smoothly-icon{
|
|
47
|
+
font-size: 1.75em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([selected]) > button{
|
|
51
|
+
background-color: rgb(var(--smoothly-success-color));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([selected]) smoothly-icon{
|
|
55
|
+
transform: translateX(100%);
|
|
56
|
+
}
|
|
@@ -2,7 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
export class SmoothlyTrigger {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.color = undefined;
|
|
5
|
-
this.expand = undefined;
|
|
6
5
|
this.fill = undefined;
|
|
7
6
|
this.disabled = false;
|
|
8
7
|
this.type = "button";
|
|
@@ -62,28 +61,6 @@ export class SmoothlyTrigger {
|
|
|
62
61
|
"attribute": "color",
|
|
63
62
|
"reflect": true
|
|
64
63
|
},
|
|
65
|
-
"expand": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"mutable": false,
|
|
68
|
-
"complexType": {
|
|
69
|
-
"original": "Expand",
|
|
70
|
-
"resolved": "\"block\" | \"full\"",
|
|
71
|
-
"references": {
|
|
72
|
-
"Expand": {
|
|
73
|
-
"location": "import",
|
|
74
|
-
"path": "../../model"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"required": false,
|
|
79
|
-
"optional": false,
|
|
80
|
-
"docs": {
|
|
81
|
-
"tags": [],
|
|
82
|
-
"text": ""
|
|
83
|
-
},
|
|
84
|
-
"attribute": "expand",
|
|
85
|
-
"reflect": true
|
|
86
|
-
},
|
|
87
64
|
"fill": {
|
|
88
65
|
"type": "string",
|
|
89
66
|
"mutable": false,
|
|
@@ -211,3 +188,4 @@ export class SmoothlyTrigger {
|
|
|
211
188
|
}];
|
|
212
189
|
}
|
|
213
190
|
}
|
|
191
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/trigger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAQ/E,MAAM,OAAO,eAAe;;;;oBAGS,KAAK;gBACU,QAAQ;;;;EAM3D,OAAO,CAAC,CAAU;IACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;IACzD,CAAC,CAAC,eAAe,EAAE,CAAA;IACnB,CAAC,CAAC,cAAc,EAAE,CAAA;EACnB,CAAC;EACD,MAAM;IACL,IAAI,MAAmB,CAAA;IACvB,QAAQ,IAAI,CAAC,IAAI,EAAE;MAClB,KAAK,MAAM;QACV,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CACxB,eAAa,CACb,CAAC,CAAC,CAAC,CACH,SAAG,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;UAC/B,eAAa,CACV,CACJ,CAAA;QACD,MAAK;MACN,KAAK,QAAQ;QACZ,MAAM,GAAG,CACR,cAAQ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;UAC/C,eAAa,CACL,CACT,CAAA;QACD,MAAK;KACN;IACD,OAAO,MAAM,CAAA;EACd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, h, Listen, Prop } from \"@stencil/core\"\nimport { Color, Fill, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTrigger {\n\t@Prop({ reflect: true }) color: Color | undefined\n\t@Prop({ reflect: true }) fill: Fill\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) type: \"link\" | \"button\" = \"button\"\n\t@Prop() name: string\n\t@Prop() value?: any\n\t@Event() trigger: EventEmitter<Trigger>\n\n\t@Listen(\"click\")\n\tonClick(e: UIEvent) {\n\t\tthis.trigger.emit({ name: this.name, value: this.value })\n\t\te.stopPropagation()\n\t\te.preventDefault()\n\t}\n\trender() {\n\t\tlet result: HTMLElement\n\t\tswitch (this.type) {\n\t\t\tcase \"link\":\n\t\t\t\tresult = this.disabled ? (\n\t\t\t\t\t<slot></slot>\n\t\t\t\t) : (\n\t\t\t\t\t<a onClick={e => this.onClick(e)}>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</a>\n\t\t\t\t)\n\t\t\t\tbreak\n\t\t\tcase \"button\":\n\t\t\t\tresult = (\n\t\t\t\t\t<button disabled={this.disabled} name={this.name}>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</button>\n\t\t\t\t)\n\t\t\t\tbreak\n\t\t}\n\t\treturn result\n\t}\n}\n"]}
|
|
@@ -22,11 +22,11 @@ button {
|
|
|
22
22
|
:host:not([disabled]):active {
|
|
23
23
|
border-color: var(--smoothly-trigger-border);
|
|
24
24
|
}
|
|
25
|
-
:host[expand=
|
|
25
|
+
:host[expand=full] > button,
|
|
26
26
|
:host[expand=block] > button {
|
|
27
27
|
width: 100%;
|
|
28
28
|
}
|
|
29
|
-
:host[expand=
|
|
29
|
+
:host[expand=full] {
|
|
30
30
|
border-left: none;
|
|
31
31
|
border-right: none;
|
|
32
32
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/trigger-sink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAO9C,MAAM,OAAO,mBAAmB;;;;;;EAK/B,IAAI,OAAO;IACV,IAAI,CAAC,IAAI,CAAC,YAAY;MACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC9D,OAAO,IAAI,CAAC,YAAY,CAAA;EACzB,CAAC;EAED,eAAe,CAAC,KAA2B;IAC1C,IAAI,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;MAC/E,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,CAAA;MACpE,KAAK,CAAC,cAAc,EAAE,CAAA;MACtB,KAAK,CAAC,eAAe,EAAE,CAAA;KACvB;EACF,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Listen, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-sink\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSink {\n\t@Prop() context?: Window\n\t@Prop() destination: string\n\t@Prop() filter?: string\n\tfiltersValue?: string[]\n\tget filters(): string[] {\n\t\tif (!this.filtersValue)\n\t\t\tthis.filtersValue = this.filter ? this.filter.split(\" \") : []\n\t\treturn this.filtersValue\n\t}\n\t@Listen(\"trigger\")\n\tTriggerListener(event: CustomEvent<Trigger>) {\n\t\tif (Trigger.is(event.detail) && this.filters.some(f => f == event.detail.name)) {\n\t\t\tMessage.send(this.destination, event.detail, this.context || window)\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t}\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/trigger-source/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAO9C,MAAM,OAAO,qBAAqB;;;;EAKjC,gBAAgB;IACf,OAAO,CAAC,MAAM,CACb,IAAI,CAAC,MAAM,EACX,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE;MACxB,IAAI,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;QACtB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;;QAE1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAA;IAC7C,CAAC,EACD,MAAM,CACN,CAAA;EACF,CAAC;EACD,MAAM;IACL,OAAO,eAAa,CAAA;EACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop } from \"@stencil/core\"\nimport { Message, Trigger } from \"../../model\"\n\n@Component({\n\ttag: \"smoothly-trigger-source\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyTriggerSource {\n\t@Prop() listen: string\n\t@Event() trigger: EventEmitter<Trigger>\n\t@Event() message: EventEmitter<Message<any>>\n\t@Element() element?: HTMLElement\n\tcomponentDidLoad() {\n\t\tMessage.listen(\n\t\t\tthis.listen,\n\t\t\t(destination, content) => {\n\t\t\t\tif (Trigger.is(content))\n\t\t\t\t\tthis.trigger.emit(content)\n\t\t\t\telse\n\t\t\t\t\tthis.message.emit({ destination, content })\n\t\t\t},\n\t\t\twindow\n\t\t)\n\t}\n\trender() {\n\t\treturn <slot></slot>\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tuple/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAKlD,MAAM,OAAO,aAAa;;;;EAEzB,MAAM;IACL,OAAO,CAAC,aAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,aAAM,CAAC,CAAA;EAC7D,CAAC;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-tuple\",\n})\nexport class SmoothlyTuple {\n\t@Prop() tuple: [string, string]\n\trender() {\n\t\treturn [<b>{this.tuple[0]}</b>, \": \", this.tuple[1], <br />]\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/urlencoded/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAKlD,MAAM,OAAO,UAAU;;;;EAEtB,MAAM;IACL,OAAO,IAAI,CAAC,IAAI;OACd,KAAK,CAAC,GAAG,CAAC;OACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;OAC1C,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,sBAAgB,KAAK,EAAE,KAAK,GAAmB,CAAC,CAAA;EAChE,CAAC;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-urlencoded\",\n})\nexport class Urlencoded {\n\t@Prop() data: string // TODO: Consider using a specific type for this\n\trender() {\n\t\treturn this.data\n\t\t\t.split(\"&\")\n\t\t\t.map(p => p.split(\"=\") as [string, string])\n\t\t\t.map(tuple => <smoothly-tuple tuple={tuple}></smoothly-tuple>)\n\t}\n}\n"]}
|
package/dist/collection/index.js
CHANGED