smoothly 0.3.30 → 0.3.32

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.
Files changed (114) hide show
  1. package/dist/cjs/{getLanguage-aa9af88b.js → getLanguage-430ecf04.js} +7 -0
  2. package/dist/cjs/{index-7b75b331.js → index-879bbabb.js} +19 -19
  3. package/dist/cjs/{index-3fb97927.js → index-de46f836.js} +7 -1
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +129 -6
  7. package/dist/cjs/smoothly-country.cjs.entry.js +4 -2
  8. package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -1
  9. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -1
  12. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -1
  13. package/dist/cjs/smoothly.cjs.js +2 -2
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/accordion/index.js +1 -0
  16. package/dist/collection/components/accordion-item/index.js +5 -0
  17. package/dist/collection/components/app/index.js +3 -0
  18. package/dist/collection/components/app-demo/index.js +3 -0
  19. package/dist/collection/components/backtotop/index.js +1 -0
  20. package/dist/collection/components/button/index.js +5 -0
  21. package/dist/collection/components/calendar/index.js +8 -1
  22. package/dist/collection/components/checkbox/index.js +4 -0
  23. package/dist/collection/components/country/index.js +2 -0
  24. package/dist/collection/components/dialog/index.js +2 -0
  25. package/dist/collection/components/display/index.js +7 -0
  26. package/dist/collection/components/display-amount/index.js +2 -0
  27. package/dist/collection/components/display-date-time/index.js +3 -0
  28. package/dist/collection/components/frame/index.js +5 -0
  29. package/dist/collection/components/google-font/index.js +3 -0
  30. package/dist/collection/components/icon/index.js +4 -0
  31. package/dist/collection/components/input/index.js +6 -0
  32. package/dist/collection/components/input-date/index.js +8 -0
  33. package/dist/collection/components/input-date-range/index.js +6 -0
  34. package/dist/collection/components/input-month/index.js +3 -0
  35. package/dist/collection/components/item/index.js +5 -0
  36. package/dist/collection/components/menu-options/index.js +3 -0
  37. package/dist/collection/components/notification/index.js +2 -1
  38. package/dist/collection/components/option/index.js +5 -0
  39. package/dist/collection/components/picker/index.js +6 -0
  40. package/dist/collection/components/quiet/index.js +3 -0
  41. package/dist/collection/components/radio/index.js +6 -0
  42. package/dist/collection/components/radio-button/index.js +3 -0
  43. package/dist/collection/components/radio-button/item/index.js +5 -0
  44. package/dist/collection/components/room/index.js +6 -0
  45. package/dist/collection/components/select/index.js +5 -0
  46. package/dist/collection/components/selector/index.js +3 -1
  47. package/dist/collection/components/skeleton/index.js +4 -0
  48. package/dist/collection/components/spinner/index.js +1 -0
  49. package/dist/collection/components/submit/index.js +5 -0
  50. package/dist/collection/components/svg/index.js +3 -0
  51. package/dist/collection/components/tab/index.js +4 -0
  52. package/dist/collection/components/tab-switch/index.js +3 -0
  53. package/dist/collection/components/table/expandable/cell/index.js +1 -0
  54. package/dist/collection/components/table/expandable/row/index.js +1 -0
  55. package/dist/collection/components/table/header/index.js +3 -0
  56. package/dist/collection/components/trigger/index.js +5 -0
  57. package/dist/collection/components/trigger-sink/index.js +5 -0
  58. package/dist/collection/components/trigger-source/index.js +3 -0
  59. package/dist/collection/components/tuple/index.js +3 -0
  60. package/dist/collection/components/urlencoded/index.js +3 -0
  61. package/dist/collection/model/Listenable.js +29 -16
  62. package/dist/collection/model/Notice.js +18 -18
  63. package/dist/collection/model/index.js +1 -0
  64. package/dist/custom-elements/index.js +158 -21
  65. package/dist/esm/{getLanguage-3dbe8ccd.js → getLanguage-cccb8418.js} +7 -0
  66. package/dist/esm/{index-fcf8bdd3.js → index-d3421c35.js} +7 -1
  67. package/dist/esm/{index-3b463176.js → index-d7a4e405.js} +19 -19
  68. package/dist/esm/index.js +2 -2
  69. package/dist/esm/loader.js +2 -2
  70. package/dist/esm/polyfills/css-shim.js +1 -1
  71. package/dist/esm/smoothly-accordion_53.entry.js +129 -6
  72. package/dist/esm/smoothly-country.entry.js +4 -2
  73. package/dist/esm/smoothly-google-font.entry.js +2 -1
  74. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  75. package/dist/esm/smoothly-reorder.entry.js +1 -1
  76. package/dist/esm/smoothly-trigger-sink.entry.js +4 -1
  77. package/dist/esm/smoothly-trigger-source.entry.js +2 -1
  78. package/dist/esm/smoothly.js +2 -2
  79. package/dist/smoothly/index.esm.js +1 -1
  80. package/dist/smoothly/{p-af90d05a.js → p-4a0b35b7.js} +0 -0
  81. package/dist/smoothly/p-5b6351f6.js +1 -0
  82. package/dist/smoothly/{p-f67259c5.entry.js → p-5d41e3ca.entry.js} +1 -1
  83. package/dist/smoothly/{p-6acd7162.entry.js → p-6630d923.entry.js} +1 -1
  84. package/dist/smoothly/{p-a1c137fc.entry.js → p-7db49a38.entry.js} +1 -1
  85. package/dist/smoothly/{p-e5191036.js → p-94e08cee.js} +1 -1
  86. package/dist/smoothly/p-c9bb4a18.entry.js +1 -0
  87. package/dist/smoothly/p-e0f4957d.entry.js +1 -0
  88. package/dist/smoothly/p-eb4e2500.entry.js +1 -0
  89. package/dist/smoothly/p-f97fcb32.entry.js +1 -0
  90. package/dist/smoothly/smoothly.esm.js +1 -1
  91. package/dist/types/components/submit/Data.d.ts +1 -1
  92. package/dist/types/components.d.ts +12 -0
  93. package/dist/types/model/Autocomplete.d.ts +1 -1
  94. package/dist/types/model/Color.d.ts +1 -1
  95. package/dist/types/model/Expand.d.ts +1 -1
  96. package/dist/types/model/Fill.d.ts +1 -1
  97. package/dist/types/model/GoogleFont.d.ts +1 -1
  98. package/dist/types/model/Listenable.d.ts +9 -5
  99. package/dist/types/model/Option.d.ts +1 -1
  100. package/dist/types/model/index.d.ts +1 -0
  101. package/dist/types/stencil-public-runtime.d.ts +44 -3
  102. package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +1 -1
  103. package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +1 -1
  104. package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +1 -1
  105. package/dist/types/utilities/Cosmetic/Color/Name.d.ts +1 -1
  106. package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +1 -1
  107. package/dist/types/utilities/Cosmetic/Color/index.d.ts +1 -1
  108. package/dist/types/utilities/Cosmetic/index.d.ts +1 -1
  109. package/package.json +30 -3
  110. package/dist/smoothly/p-0833f25c.entry.js +0 -1
  111. package/dist/smoothly/p-2bf8c660.entry.js +0 -1
  112. package/dist/smoothly/p-3bd18eea.entry.js +0 -1
  113. package/dist/smoothly/p-41e29ef7.js +0 -1
  114. package/dist/smoothly/p-9fd866e2.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as s,h as i}from"./p-4a0b35b7.js";import{T as t,M as r}from"./p-b1c579b3.js";import"./p-bd478a53.js";const o=class{constructor(i){s(this,i),this.context=void 0,this.destination=void 0,this.filter=void 0}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){t.is(s.detail)&&this.filters.some((i=>i==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return i("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-af90d05a.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-6acd7162",[[2,"smoothly-country",{value:[1],text:[1],language:[32]}]]],["p-3bd18eea",[[2,"smoothly-google-font",{value:[1]}]]],["p-a1c137fc",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-f67259c5",[[0,"smoothly-reorder"]]],["p-0833f25c",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-2bf8c660",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-9fd866e2",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],showLabel:[516,"show-label"],labelStart:[1,"label-start"],labelEnd:[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{disabled:[516],readonly:[516],maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],mutable:[4],optionStyle:[8,"option-style"],options:[1040],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectAllName:[1025,"select-all-name"],selectionName:[1025,"selection-name"],newOptionLabel:[1025,"new-option-label"],valueValidator:[16],isOpen:[32],empty:[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-radio-button-item",{value:[8],selected:[1540],color:[513]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1],format:[16]}],[2,"smoothly-display-amount",{amount:[8],currency:[1],toInteger:[4,"to-integer"]}],[2,"smoothly-display-date-time",{datetime:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-radio-button",{name:[1],value:[1032],deselectable:[516],decoration:[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1025],color:[1],period:[2],distance:[1],align:[513]}],[2,"smoothly-svg",{url:[513],size:[513],color:[1]}],[6,"smoothly-table",{root:[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{toggle:[4],emptyMenuLabel:[1025,"empty-menu-label"],newOptionLabel:[1,"new-option-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],mutable:[4],filteredOptions:[32],highlightIndex:[32],keyword:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540],checkbox:[4],new:[4],toggle:[4],checked:[1028]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-selector",{initialPrompt:[1,"initial-prompt"],opened:[32],selectedElement:[32],missing:[32],filter:[32],reset:[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],marked:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
1
+ import{p as e,b as o}from"./p-4a0b35b7.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-6630d923",[[2,"smoothly-country",{value:[1],text:[1],language:[32]}]]],["p-e0f4957d",[[2,"smoothly-google-font",{value:[1]}]]],["p-7db49a38",[[4,"smoothly-radio-group",{orientation:[513]}]]],["p-5d41e3ca",[[0,"smoothly-reorder"]]],["p-f97fcb32",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-c9bb4a18",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-eb4e2500",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-input-date-range",{value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],open:[1028],showLabel:[516,"show-label"],labelStart:[1,"label-start"],labelEnd:[1,"label-end"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{disabled:[516],readonly:[516],maxMenuHeight:[1,"max-menu-height"],maxHeight:[1,"max-height"],emptyMenuLabel:[1025,"empty-menu-label"],multiple:[516],mutable:[4],optionStyle:[8,"option-style"],options:[1040],labelSetting:[513,"label-setting"],label:[513],selections:[1040],selectNoneName:[1025,"select-none-name"],selectAllName:[1025,"select-all-name"],selectionName:[1025,"selection-name"],newOptionLabel:[1025,"new-option-label"],valueValidator:[16],isOpen:[32],empty:[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{notices:[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{color:[513],open:[1540],closable:[516],header:[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{opacity:[1],bottom:[1],right:[1],visible:[32]}],[2,"smoothly-checkbox",{selectAll:[4,"select-all"],size:[1],intermediate:[1540],selected:[1540],disabled:[1540],t:[32]}],[6,"smoothly-radio-button-item",{value:[8],selected:[1540],color:[513]}],[6,"smoothly-submit",{processing:[1540],color:[513],expand:[513],fill:[513],disabled:[516],prevent:[4],submit:[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[0,"smoothly-urlencoded",{data:[1]}],[6,"smoothly-accordion",{value:[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{name:[1],brand:[1],open:[1540]}],[2,"smoothly-display",{type:[1],value:[8],currency:[1],country:[1],format:[16]}],[2,"smoothly-display-amount",{amount:[8],currency:[1],toInteger:[4,"to-integer"]}],[2,"smoothly-display-date-time",{datetime:[1]}],[2,"smoothly-frame",{url:[1],name:[1],origin:[1],send:[64]}],[6,"smoothly-popup",{visible:[1540],direction:[1537],cssVariables:[32]}],[6,"smoothly-radio",{name:[1],value:[1],checked:[1540],tabIndex:[2,"tab-index"]}],[6,"smoothly-radio-button",{name:[1],value:[1032],deselectable:[516],decoration:[513]},[[2,"radioItemSelectInternal","radioSelectHandler"]]],[6,"smoothly-select",{identifier:[1],background:[513],value:[1025]}],[2,"smoothly-skeleton",{widths:[16],width:[1025],color:[1],period:[2],distance:[1],align:[513]}],[2,"smoothly-svg",{url:[513],size:[513],color:[1]}],[6,"smoothly-table",{root:[1540]},[[0,"expandableLoad","handleExpandableLoaded"],[0,"expandableChange","handleExpandableState"],[0,"spotlightChange","handleSpotlightState"],[0,"smoothlyNestedTable","handleNestedTable"],[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-expandable-row",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-table-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{toggle:[4],emptyMenuLabel:[1025,"empty-menu-label"],newOptionLabel:[1,"new-option-label"],maxMenuHeight:[1,"max-menu-height"],order:[4],optionStyle:[8,"option-style"],options:[1040],resetHighlightOnOptionsChange:[1028,"reset-highlight-on-options-change"],mutable:[4],filteredOptions:[32],highlightIndex:[32],keyword:[32],moveHighlight:[64],setHighlight:[64],getHighlighted:[64],filterOptions:[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{tuple:[16]}],[1,"smoothly-option",{aliases:[513],dataHighlight:[1540,"data-highlight"],name:[1537],value:[1537],divider:[1540],checkbox:[4],new:[4],toggle:[4],checked:[1028]}],[2,"smoothly-spinner",{active:[516],size:[513]}],[2,"smoothly-calendar",{month:[1025],value:[1025],start:[1025],end:[1025],max:[1025],min:[1025],doubleInput:[516,"double-input"],firstSelected:[32]}],[6,"smoothly-input",{name:[513],value:[1032],type:[513],required:[1540],minLength:[1026,"min-length"],showLabel:[516,"show-label"],maxLength:[1026,"max-length"],autocomplete:[1028],pattern:[1040],placeholder:[1025],disabled:[1028],readonly:[1028],currency:[513],initialValue:[32],getFormData:[64],setKeepFocusOnReRender:[64],setSelectionRange:[64]}],[2,"smoothly-input-month",{value:[1025]}],[6,"smoothly-quiet",{color:[1]}],[6,"smoothly-selector",{initialPrompt:[1,"initial-prompt"],opened:[32],selectedElement:[32],missing:[32],filter:[32],reset:[64]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{value:[8],selected:[1540],marked:[1540],filter:[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],name:[1],value:[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
@@ -1,4 +1,4 @@
1
- export declare type Data = {
1
+ export type Data = {
2
2
  [name: string]: Data | string;
3
3
  };
4
4
  export declare namespace Data {
@@ -80,6 +80,9 @@ export namespace Components {
80
80
  "currency": Currency;
81
81
  "toInteger": boolean;
82
82
  }
83
+ /**
84
+ * DEPRECATED, use <smoothly-display type="date-time">
85
+ */
83
86
  interface SmoothlyDisplayDateTime {
84
87
  "datetime": DateTime;
85
88
  }
@@ -514,6 +517,9 @@ declare global {
514
517
  prototype: HTMLSmoothlyDisplayAmountElement;
515
518
  new (): HTMLSmoothlyDisplayAmountElement;
516
519
  };
520
+ /**
521
+ * DEPRECATED, use <smoothly-display type="date-time">
522
+ */
517
523
  interface HTMLSmoothlyDisplayDateTimeElement extends Components.SmoothlyDisplayDateTime, HTMLStencilElement {
518
524
  }
519
525
  var HTMLSmoothlyDisplayDateTimeElement: {
@@ -931,6 +937,9 @@ declare namespace LocalJSX {
931
937
  "currency"?: Currency;
932
938
  "toInteger"?: boolean;
933
939
  }
940
+ /**
941
+ * DEPRECATED, use <smoothly-display type="date-time">
942
+ */
934
943
  interface SmoothlyDisplayDateTime {
935
944
  "datetime"?: DateTime;
936
945
  }
@@ -1282,6 +1291,9 @@ declare module "@stencil/core" {
1282
1291
  "smoothly-dialog-demo": LocalJSX.SmoothlyDialogDemo & JSXBase.HTMLAttributes<HTMLSmoothlyDialogDemoElement>;
1283
1292
  "smoothly-display": LocalJSX.SmoothlyDisplay & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayElement>;
1284
1293
  "smoothly-display-amount": LocalJSX.SmoothlyDisplayAmount & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayAmountElement>;
1294
+ /**
1295
+ * DEPRECATED, use <smoothly-display type="date-time">
1296
+ */
1285
1297
  "smoothly-display-date-time": LocalJSX.SmoothlyDisplayDateTime & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayDateTimeElement>;
1286
1298
  "smoothly-display-demo": LocalJSX.SmoothlyDisplayDemo & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayDemoElement>;
1287
1299
  "smoothly-frame": LocalJSX.SmoothlyFrame & JSXBase.HTMLAttributes<HTMLSmoothlyFrameElement>;
@@ -1 +1 @@
1
- export declare type Autocomplete = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
1
+ export type Autocomplete = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
@@ -1 +1 @@
1
- export declare type Color = "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark";
1
+ export type Color = "default" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark";
@@ -1 +1 @@
1
- export declare type Expand = "block" | "full";
1
+ export type Expand = "block" | "full";
@@ -1 +1 @@
1
- export declare type Fill = "clear" | "default" | "outline" | "solid";
1
+ export type Fill = "clear" | "default" | "outline" | "solid";
@@ -1,4 +1,4 @@
1
- export declare type GoogleFont = string;
1
+ export type GoogleFont = string;
2
2
  export declare namespace GoogleFont {
3
3
  function is(value: string | any): value is GoogleFont;
4
4
  function getFont(value: string): string | undefined;
@@ -1,10 +1,14 @@
1
1
  export declare class Listenable<T extends Record<string, any>> {
2
2
  #private;
3
- listen<K extends keyof T>(this: T & Listenable<T>, property: K, listener: Listener<T[K]>): void;
4
- unlisten<K extends keyof T>(property: K, listener: Listener<T[K]>): void;
5
- static load<T>(backend: T): T & Listenable<T>;
3
+ listen<K extends keyof ListenableProperties<T>>(this: T & Listenable<T>, property: K, listener: Listener<T[K]>): void;
4
+ unlisten<K extends keyof ListenableProperties<T>>(property: K, listener: Listener<T[K]>): void;
5
+ static load<T extends Record<string, any>>(backend: T, listenable?: Listenable<T>): T & Listenable<T>;
6
6
  }
7
- export declare type Listener<V> = (value: V) => void;
8
- export declare type Listeners<T> = {
7
+ type ListenableProperties<T> = {
8
+ [P in keyof T as T[P] extends Function ? never : P]: T[P];
9
+ };
10
+ export type Listener<V> = (value: V) => void;
11
+ export type Listeners<T> = {
9
12
  [K in keyof T]?: Listener<T[K]>[];
10
13
  };
14
+ export {};
@@ -1,4 +1,4 @@
1
- export declare type Option = {
1
+ export type Option = {
2
2
  value: any;
3
3
  name: string;
4
4
  hint?: string;
@@ -8,3 +8,4 @@ export { Message } from "./Message";
8
8
  export { Notice } from "./Notice";
9
9
  export { Option } from "./Option";
10
10
  export { Trigger } from "./Trigger";
11
+ export { Listenable } from "./Listenable";
@@ -133,7 +133,7 @@ export interface ListenOptions {
133
133
  */
134
134
  passive?: boolean;
135
135
  }
136
- export declare type ListenTargetOptions = 'body' | 'document' | 'window';
136
+ export type ListenTargetOptions = 'body' | 'document' | 'window';
137
137
  export interface StateDecorator {
138
138
  (): PropertyDecorator;
139
139
  }
@@ -214,8 +214,8 @@ export declare const State: StateDecorator;
214
214
  * https://stenciljs.com/docs/reactive-data#watch-decorator
215
215
  */
216
216
  export declare const Watch: WatchDecorator;
217
- export declare type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
- export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
217
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
218
+ export type ErrorHandler = (err: any, element?: HTMLElement) => void;
219
219
  /**
220
220
  * `setMode()` is used for libraries which provide multiple "modes" for styles.
221
221
  */
@@ -223,6 +223,7 @@ export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
224
  * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
225
  * @param ref a reference to the node to get styles for
226
+ * @returns the current mode or undefined, if not found
226
227
  */
227
228
  export declare function getMode<T = string | undefined>(ref: any): T;
228
229
  export declare function setPlatformHelpers(helpers: {
@@ -237,6 +238,7 @@ export declare function setPlatformHelpers(helpers: {
237
238
  * if the path needs to be customized.
238
239
  * @param path the path to use in calculating the asset path. this value will be
239
240
  * used in conjunction with the base asset path
241
+ * @returns the base path
240
242
  */
241
243
  export declare function getAssetPath(path: string): string;
242
244
  /**
@@ -252,11 +254,13 @@ export declare function getAssetPath(path: string): string;
252
254
  * bundling, and where your assets can be loaded from. Additionally custom bundling
253
255
  * will have to ensure the static assets are copied to its build directory.
254
256
  * @param path the asset path to set
257
+ * @returns the set path
255
258
  */
256
259
  export declare function setAssetPath(path: string): string;
257
260
  /**
258
261
  * Retrieve a Stencil element for a given reference
259
262
  * @param ref the ref to get the Stencil element for
263
+ * @returns a reference to the element
260
264
  */
261
265
  export declare function getElement(ref: any): HTMLStencilElement;
262
266
  /**
@@ -269,6 +273,7 @@ export declare function getElement(ref: any): HTMLStencilElement;
269
273
  export declare function forceUpdate(ref: any): void;
270
274
  /**
271
275
  * getRenderingRef
276
+ * @returns the rendering ref
272
277
  */
273
278
  export declare function getRenderingRef(): any;
274
279
  export interface HTMLStencilElement extends HTMLElement {
@@ -428,8 +433,44 @@ interface HostAttributes {
428
433
  ref?: (el: HTMLElement | null) => void;
429
434
  [prop: string]: any;
430
435
  }
436
+ /**
437
+ * Utilities for working with functional Stencil components. An object
438
+ * conforming to this interface is passed by the Stencil runtime as the third
439
+ * argument to a functional component, allowing component authors to work with
440
+ * features like children.
441
+ *
442
+ * The children of a functional component will be passed as the second
443
+ * argument, so a functional component which uses these utils to transform its
444
+ * children might look like the following:
445
+ *
446
+ * ```ts
447
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
448
+ * utils.map(children, child => ({
449
+ * ...child,
450
+ * vattrs: {
451
+ * ...child.vattrs,
452
+ * class: `${child.vattrs.class} add-class`
453
+ * }
454
+ * }))
455
+ * );
456
+ * ```
457
+ *
458
+ * For more see the Stencil documentation, here:
459
+ * https://stenciljs.com/docs/functional-components
460
+ */
431
461
  export interface FunctionalUtilities {
462
+ /**
463
+ * Utility for reading the children of a functional component at runtime.
464
+ * Since the Stencil runtime uses a different interface for children it is
465
+ * not recommendeded to read the children directly, and is preferable to use
466
+ * this utility to, for instance, perform a side effect for each child.
467
+ */
432
468
  forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
469
+ /**
470
+ * Utility for transforming the children of a functional component. Given an
471
+ * array of children and a callback this will return a list of the results of
472
+ * passing each child to the supplied callback.
473
+ */
433
474
  map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
434
475
  }
435
476
  export interface FunctionalComponent<T = {}> {
@@ -1,7 +1,7 @@
1
1
  import { Hex } from "./Hex";
2
2
  import { Hsl } from "./Hsl";
3
3
  import { Rgb } from "./Rgb";
4
- export declare type CommaRgb = string;
4
+ export type CommaRgb = string;
5
5
  export declare namespace CommaRgb {
6
6
  function is(value: any | CommaRgb): value is CommaRgb;
7
7
  function from(color: any): CommaRgb | undefined;
@@ -1,4 +1,4 @@
1
- export declare type Hex = string;
1
+ export type Hex = string;
2
2
  export declare namespace Hex {
3
3
  function is(value: any | Hex): value is Hex;
4
4
  }
@@ -1,4 +1,4 @@
1
- export declare type Hsl = string;
1
+ export type Hsl = string;
2
2
  export declare namespace Hsl {
3
3
  function is(value: any | Hsl): value is Hsl;
4
4
  }
@@ -148,7 +148,7 @@ export declare const Names: {
148
148
  readonly yellow: "#ffff00";
149
149
  readonly yellowgreen: "#9acd32";
150
150
  };
151
- export declare type Name = keyof typeof Names;
151
+ export type Name = keyof typeof Names;
152
152
  export declare namespace Name {
153
153
  const types: () => string[];
154
154
  function is(value: any | Name): value is Name;
@@ -1,4 +1,4 @@
1
- export declare type Rgb = string;
1
+ export type Rgb = string;
2
2
  export declare namespace Rgb {
3
3
  function is(value: any | Rgb): value is Rgb;
4
4
  }
@@ -3,7 +3,7 @@ import { Hex as ColorHex } from "./Hex";
3
3
  import { Hsl as ColorHsl } from "./Hsl";
4
4
  import { Name as ColorName } from "./Name";
5
5
  import { Rgb as ColorRgb } from "./Rgb";
6
- export declare type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb;
6
+ export type Color = ColorCommaRgb | ColorHex | ColorHsl | ColorName | ColorRgb;
7
7
  export declare namespace Color {
8
8
  function is(value: any | Color): value is Color;
9
9
  function from(value: any | Color): Color | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Color as CosmeticColor } from "./Color";
2
- export declare type Cosmetic = {
2
+ export type Cosmetic = {
3
3
  text?: {
4
4
  background?: string;
5
5
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoothly",
3
- "version": "0.3.30",
3
+ "version": "0.3.32",
4
4
  "description": "Web component library written in Stencil.",
5
5
  "author": "PayFunc",
6
6
  "license": "MIT",
@@ -14,6 +14,7 @@
14
14
  "homepage": "https://payfunc.com/open-source/smoothly",
15
15
  "private": false,
16
16
  "main": "dist/index.cjs.js",
17
+ "type": "module",
17
18
  "module": "dist/index.js",
18
19
  "es2015": "dist/esm/index.js",
19
20
  "es2017": "dist/esm/index.js",
@@ -31,6 +32,32 @@
31
32
  "github": {
32
33
  "release": true
33
34
  },
35
+ "jest": {
36
+ "globals": {
37
+ "ts-jest": {
38
+ "tsconfig": "tsconfig.test.json"
39
+ }
40
+ },
41
+ "transform": {
42
+ "^.+\\.(j|t)sx?$": "ts-jest"
43
+ },
44
+ "transformIgnorePatterns": [
45
+ "<rootDir>/node_modules/(?!(cryptly|authly|isoly|gracely|cloudly-http|cloudly-router|cloudly-rest)/.*)"
46
+ ],
47
+ "testEnvironment": "node",
48
+ "testRegex": "((\\.|/)(test|spec))(\\.|\\/.+)(jsx?|tsx?)$",
49
+ "testPathIgnorePatterns": [
50
+ "node_modules/",
51
+ "dist/"
52
+ ],
53
+ "collectCoverageFrom": [
54
+ "**/*.{ts,tsx,js,jsx}",
55
+ "!**/node_modules/**",
56
+ "!**/dist/**"
57
+ ],
58
+ "preset": "ts-jest",
59
+ "testMatch": null
60
+ },
34
61
  "scripts": {
35
62
  "build": "stencil build",
36
63
  "start": "stencil build --dev --watch --serve",
@@ -56,12 +83,12 @@
56
83
  "@typescript-eslint/eslint-plugin": "^5.36.0",
57
84
  "@typescript-eslint/parser": "^5.36.0",
58
85
  "eslint": "^8.26.0",
59
- "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20221021",
86
+ "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20221229",
60
87
  "eslint-plugin-simple-import-sort": "^7.0.0",
61
88
  "jest": "^27.0.3",
62
89
  "jest-cli": "^27.4.5",
63
90
  "prettier": "^2.7.1",
64
- "prettierx": "github:utily/prettierx#utily-20221021",
91
+ "prettierx": "github:utily/prettierx#utily-20221229",
65
92
  "puppeteer": "^17.0.0",
66
93
  "typescript": "^4.8.4"
67
94
  }
@@ -1 +0,0 @@
1
- import{r as s,h as t}from"./p-af90d05a.js";import{T as i,M as r}from"./p-b1c579b3.js";import"./p-bd478a53.js";const o=class{constructor(t){s(this,t)}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){i.is(s.detail)&&this.filters.some((t=>t==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return t("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as o,a as r}from"./p-af90d05a.js";import{M as e,T as i}from"./p-b1c579b3.js";import"./p-bd478a53.js";const n=class{constructor(o){s(this,o),this.trigger=t(this,"trigger",7),this.message=t(this,"message",7)}componentDidLoad(){e.listen(this.listen,((s,t)=>{i.is(t)?this.trigger.emit(t):this.message.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return r(this)}};n.style=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";export{n as smoothly_trigger_source}
@@ -1 +0,0 @@
1
- import{r as s,h as o}from"./p-af90d05a.js";import{G as t}from"./p-bd478a53.js";const r=class{constructor(o){s(this,o)}render(){return t.is(this.value)?o("style",null,t.styleImportString(this.value)):""}};export{r as smoothly_google_font}