smoothly 0.3.33 → 1.0.0-alpha.2

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 (35) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{smoothly-accordion_53.cjs.entry.js → smoothly-accordion_57.cjs.entry.js} +4840 -227
  3. package/dist/cjs/smoothly.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +4 -0
  5. package/dist/collection/components/filter/advanced-filter/index.js +18 -0
  6. package/dist/collection/components/filter/advanced-filter/style.css +3 -0
  7. package/dist/collection/components/filter/index.js +88 -0
  8. package/dist/collection/components/filter/input/index.js +350 -0
  9. package/dist/collection/components/filter/input/style.css +3 -0
  10. package/dist/collection/components/filter/style.css +3 -0
  11. package/dist/collection/components/input/index.js +1 -1
  12. package/dist/collection/components/table/demo/filtered/File.js +1 -0
  13. package/dist/collection/components/table/demo/filtered/Metadata.js +1 -0
  14. package/dist/collection/components/table/demo/filtered/Review.js +1 -0
  15. package/dist/collection/components/table/demo/filtered/Root.js +1 -0
  16. package/dist/collection/components/table/demo/filtered/index.js +40 -0
  17. package/dist/collection/components/table/demo/filtered/style.css +3 -0
  18. package/dist/collection/components/table/demo/index.js +1 -0
  19. package/dist/custom-elements/index.d.ts +24 -0
  20. package/dist/custom-elements/index.js +5174 -553
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/{smoothly-accordion_53.entry.js → smoothly-accordion_57.entry.js} +4837 -228
  23. package/dist/esm/smoothly.js +1 -1
  24. package/dist/smoothly/{p-4a78c705.entry.js → p-6e3d559e.entry.js} +1 -1
  25. package/dist/smoothly/smoothly.esm.js +1 -1
  26. package/dist/types/components/filter/advanced-filter/index.d.ts +3 -0
  27. package/dist/types/components/filter/index.d.ts +8 -0
  28. package/dist/types/components/filter/input/index.d.ts +23 -0
  29. package/dist/types/components/table/demo/filtered/File.d.ts +14 -0
  30. package/dist/types/components/table/demo/filtered/Metadata.d.ts +23 -0
  31. package/dist/types/components/table/demo/filtered/Review.d.ts +9 -0
  32. package/dist/types/components/table/demo/filtered/Root.d.ts +17 -0
  33. package/dist/types/components/table/demo/filtered/index.d.ts +9 -0
  34. package/dist/types/components.d.ts +93 -0
  35. package/package.json +3 -1
@@ -1 +1 @@
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-4fecfc5d",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-96e8781a",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-4a78c705",[[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-4fecfc5d",[[6,"smoothly-trigger-sink",{context:[16],destination:[1],filter:[1]},[[0,"trigger","TriggerListener"]]]]],["p-96e8781a",[[6,"smoothly-trigger-source",{listen:[1]}]]],["p-6e3d559e",[[0,"smoothly-app-demo",{baseUrl:[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{color:[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[4,"smoothly-room",{label:[1],icon:[1],path:[1],to:[1]}],[2,"smoothly-table-demo-filtered",{criteria:[32],data:[32]}],[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"],[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-expandable-row",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-input-date",{name:[513],value:[1025],open:[1028],max:[1025],min:[1025],disabled:[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-filter-input",{name:[513],value:[8],type:[513],required:[1540],minLength:[2,"min-length"],showLabel:[516,"show-label"],maxLength:[2,"max-length"],autocomplete:[4],pattern:[16],placeholder:[1],disabled:[4],readonly:[4],currency:[513],comparison:[1],isExpanded:[32]}],[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"]]],[6,"smoothly-filter",{criteria:[1040]},[[0,"filter","filterHandler"]]],[2,"smoothly-notification",{notice:[16],tick:[32]},[[0,"trigger","onTrigger"]]],[6,"smoothly-table-expandable-cell",{align:[1],open:[1540],allowSpotlight:[32],spotlight:[32]},[[0,"click","onClick"],[0,"tableLoad","handleTableLoaded"]]],[6,"smoothly-tab",{label:[1],open:[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{selectedElement:[32]},[[0,"expansionOpen","openChanged"]]],[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-header",{name:[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[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]}],[6,"smoothly-button",{color:[513],expand:[513],fill:[513],disabled:[516],type:[513],link:[1],download:[4]}],[6,"smoothly-filter-advanced"],[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]}],[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"]]],[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-icon",{color:[513],fill:[513],name:[1],size:[513],toolTip:[1,"tool-tip"],document:[32]}]]]],e)));
@@ -0,0 +1,3 @@
1
+ export declare class SmoothlyFilterAdvanced {
2
+ render(): any;
3
+ }
@@ -0,0 +1,8 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { Criteria } from "selectively";
3
+ export declare class SmoothlyFilter {
4
+ criteria: Record<string, Criteria>;
5
+ filter: EventEmitter<Criteria>;
6
+ filterHandler(event: CustomEvent<Record<string, Criteria>>): void;
7
+ render(): any[];
8
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter } from "../../../stencil-public-runtime";
2
+ import { Currency } from "isoly";
3
+ import { Criteria } from "selectively";
4
+ export declare class SmoothlyFilterInput {
5
+ name: string;
6
+ value: any;
7
+ type: string;
8
+ required: boolean;
9
+ minLength: number;
10
+ showLabel: boolean;
11
+ maxLength: number;
12
+ autocomplete: boolean;
13
+ pattern?: RegExp;
14
+ placeholder?: string;
15
+ disabled: boolean;
16
+ readonly: boolean;
17
+ currency?: Currency;
18
+ comparison: "equals" | "less" | "greater" | "starts" | "ends" | "includes";
19
+ isExpanded: boolean;
20
+ filter: EventEmitter<Criteria>;
21
+ private onFilter;
22
+ render(): any[];
23
+ }
@@ -0,0 +1,14 @@
1
+ export interface File {
2
+ name: string;
3
+ source: string;
4
+ format: string;
5
+ original?: string;
6
+ mtime?: string;
7
+ size?: string;
8
+ md5: string;
9
+ crc32?: string;
10
+ sha1?: string;
11
+ btih?: string;
12
+ summation?: string;
13
+ rotation?: string;
14
+ }
@@ -0,0 +1,23 @@
1
+ export interface Metadata {
2
+ identifier: string;
3
+ mediaType: string;
4
+ description: string;
5
+ language: string;
6
+ scanner: string;
7
+ title: string;
8
+ publicDate: string;
9
+ uploader: string;
10
+ addedDate: string;
11
+ identifierAccess: string;
12
+ identifierArk: string;
13
+ ppi: string;
14
+ ocr: string;
15
+ repubState: string;
16
+ creator: string;
17
+ subject: string[];
18
+ curation: string;
19
+ collection: string[];
20
+ backup_location: string;
21
+ openLibraryEdition: string;
22
+ openLibraryWork: string;
23
+ }
@@ -0,0 +1,9 @@
1
+ export interface Review {
2
+ reviewTitle: string;
3
+ reviewBody: string;
4
+ stars: string;
5
+ reviewer: string;
6
+ reviewDate: string;
7
+ createDate: string;
8
+ reviewerItemName: string;
9
+ }
@@ -0,0 +1,17 @@
1
+ import { Metadata } from "./Metadata";
2
+ import { Review } from "./Review";
3
+ export interface Root {
4
+ created: number;
5
+ d1: string;
6
+ d2: string;
7
+ dir: string;
8
+ files: File[];
9
+ filesCount: number;
10
+ itemLastUpdated: number;
11
+ itemSize: number;
12
+ metadata: Metadata;
13
+ reviews: Review[];
14
+ server: string;
15
+ uniq: number;
16
+ workableServers: string[];
17
+ }
@@ -0,0 +1,9 @@
1
+ import { ComponentWillLoad } from "../../../../stencil-public-runtime";
2
+ import { Criteria } from "selectively";
3
+ import { Root } from "./Root";
4
+ export declare class TableDemoFiltered implements ComponentWillLoad {
5
+ criteria: Criteria;
6
+ data?: Root | false;
7
+ componentWillLoad(): Promise<void>;
8
+ render(): any[] | "Failed to load data.";
9
+ }
@@ -8,6 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Color, Expand, Fill, Message, Notice, Option, Trigger } from "./model";
9
9
  import { CountryCode, Currency, Date, DateRange, DateTime } from "isoly";
10
10
  import { Direction, Type } from "tidily";
11
+ import { Criteria } from "selectively";
11
12
  import { GoogleFont } from "./model/GoogleFont";
12
13
  import { Selected } from "./components/radio-button/Selected";
13
14
  import { Data } from "./components/submit/Data";
@@ -88,6 +89,27 @@ export namespace Components {
88
89
  }
89
90
  interface SmoothlyDisplayDemo {
90
91
  }
92
+ interface SmoothlyFilter {
93
+ "criteria": Record<string, Criteria>;
94
+ }
95
+ interface SmoothlyFilterAdvanced {
96
+ }
97
+ interface SmoothlyFilterInput {
98
+ "autocomplete": boolean;
99
+ "comparison": "equals" | "less" | "greater" | "starts" | "ends" | "includes";
100
+ "currency"?: Currency;
101
+ "disabled": boolean;
102
+ "maxLength": number;
103
+ "minLength": number;
104
+ "name": string;
105
+ "pattern"?: RegExp;
106
+ "placeholder"?: string;
107
+ "readonly": boolean;
108
+ "required": boolean;
109
+ "showLabel": boolean;
110
+ "type": string;
111
+ "value": any;
112
+ }
91
113
  interface SmoothlyFrame {
92
114
  "name": string;
93
115
  "origin": string | undefined;
@@ -289,6 +311,8 @@ export namespace Components {
289
311
  }
290
312
  interface SmoothlyTableDemo {
291
313
  }
314
+ interface SmoothlyTableDemoFiltered {
315
+ }
292
316
  interface SmoothlyTableExpandableCell {
293
317
  "align": "left" | "center" | "right";
294
318
  "open": boolean;
@@ -342,6 +366,14 @@ export interface SmoothlyDisplayDemoCustomEvent<T> extends CustomEvent<T> {
342
366
  detail: T;
343
367
  target: HTMLSmoothlyDisplayDemoElement;
344
368
  }
369
+ export interface SmoothlyFilterCustomEvent<T> extends CustomEvent<T> {
370
+ detail: T;
371
+ target: HTMLSmoothlyFilterElement;
372
+ }
373
+ export interface SmoothlyFilterInputCustomEvent<T> extends CustomEvent<T> {
374
+ detail: T;
375
+ target: HTMLSmoothlyFilterInputElement;
376
+ }
345
377
  export interface SmoothlyFrameCustomEvent<T> extends CustomEvent<T> {
346
378
  detail: T;
347
379
  target: HTMLSmoothlyFrameElement;
@@ -532,6 +564,24 @@ declare global {
532
564
  prototype: HTMLSmoothlyDisplayDemoElement;
533
565
  new (): HTMLSmoothlyDisplayDemoElement;
534
566
  };
567
+ interface HTMLSmoothlyFilterElement extends Components.SmoothlyFilter, HTMLStencilElement {
568
+ }
569
+ var HTMLSmoothlyFilterElement: {
570
+ prototype: HTMLSmoothlyFilterElement;
571
+ new (): HTMLSmoothlyFilterElement;
572
+ };
573
+ interface HTMLSmoothlyFilterAdvancedElement extends Components.SmoothlyFilterAdvanced, HTMLStencilElement {
574
+ }
575
+ var HTMLSmoothlyFilterAdvancedElement: {
576
+ prototype: HTMLSmoothlyFilterAdvancedElement;
577
+ new (): HTMLSmoothlyFilterAdvancedElement;
578
+ };
579
+ interface HTMLSmoothlyFilterInputElement extends Components.SmoothlyFilterInput, HTMLStencilElement {
580
+ }
581
+ var HTMLSmoothlyFilterInputElement: {
582
+ prototype: HTMLSmoothlyFilterInputElement;
583
+ new (): HTMLSmoothlyFilterInputElement;
584
+ };
535
585
  interface HTMLSmoothlyFrameElement extends Components.SmoothlyFrame, HTMLStencilElement {
536
586
  }
537
587
  var HTMLSmoothlyFrameElement: {
@@ -742,6 +792,12 @@ declare global {
742
792
  prototype: HTMLSmoothlyTableDemoElement;
743
793
  new (): HTMLSmoothlyTableDemoElement;
744
794
  };
795
+ interface HTMLSmoothlyTableDemoFilteredElement extends Components.SmoothlyTableDemoFiltered, HTMLStencilElement {
796
+ }
797
+ var HTMLSmoothlyTableDemoFilteredElement: {
798
+ prototype: HTMLSmoothlyTableDemoFilteredElement;
799
+ new (): HTMLSmoothlyTableDemoFilteredElement;
800
+ };
745
801
  interface HTMLSmoothlyTableExpandableCellElement extends Components.SmoothlyTableExpandableCell, HTMLStencilElement {
746
802
  }
747
803
  var HTMLSmoothlyTableExpandableCellElement: {
@@ -812,6 +868,9 @@ declare global {
812
868
  "smoothly-display-amount": HTMLSmoothlyDisplayAmountElement;
813
869
  "smoothly-display-date-time": HTMLSmoothlyDisplayDateTimeElement;
814
870
  "smoothly-display-demo": HTMLSmoothlyDisplayDemoElement;
871
+ "smoothly-filter": HTMLSmoothlyFilterElement;
872
+ "smoothly-filter-advanced": HTMLSmoothlyFilterAdvancedElement;
873
+ "smoothly-filter-input": HTMLSmoothlyFilterInputElement;
815
874
  "smoothly-frame": HTMLSmoothlyFrameElement;
816
875
  "smoothly-google-font": HTMLSmoothlyGoogleFontElement;
817
876
  "smoothly-icon": HTMLSmoothlyIconElement;
@@ -847,6 +906,7 @@ declare global {
847
906
  "smoothly-table": HTMLSmoothlyTableElement;
848
907
  "smoothly-table-cell": HTMLSmoothlyTableCellElement;
849
908
  "smoothly-table-demo": HTMLSmoothlyTableDemoElement;
909
+ "smoothly-table-demo-filtered": HTMLSmoothlyTableDemoFilteredElement;
850
910
  "smoothly-table-expandable-cell": HTMLSmoothlyTableExpandableCellElement;
851
911
  "smoothly-table-expandable-row": HTMLSmoothlyTableExpandableRowElement;
852
912
  "smoothly-table-header": HTMLSmoothlyTableHeaderElement;
@@ -946,6 +1006,29 @@ declare namespace LocalJSX {
946
1006
  interface SmoothlyDisplayDemo {
947
1007
  "onNotice"?: (event: SmoothlyDisplayDemoCustomEvent<Notice>) => void;
948
1008
  }
1009
+ interface SmoothlyFilter {
1010
+ "criteria"?: Record<string, Criteria>;
1011
+ "onFilter"?: (event: SmoothlyFilterCustomEvent<Criteria>) => void;
1012
+ }
1013
+ interface SmoothlyFilterAdvanced {
1014
+ }
1015
+ interface SmoothlyFilterInput {
1016
+ "autocomplete"?: boolean;
1017
+ "comparison"?: "equals" | "less" | "greater" | "starts" | "ends" | "includes";
1018
+ "currency"?: Currency;
1019
+ "disabled"?: boolean;
1020
+ "maxLength"?: number;
1021
+ "minLength"?: number;
1022
+ "name"?: string;
1023
+ "onFilter"?: (event: SmoothlyFilterInputCustomEvent<Criteria>) => void;
1024
+ "pattern"?: RegExp;
1025
+ "placeholder"?: string;
1026
+ "readonly"?: boolean;
1027
+ "required"?: boolean;
1028
+ "showLabel"?: boolean;
1029
+ "type"?: string;
1030
+ "value"?: any;
1031
+ }
949
1032
  interface SmoothlyFrame {
950
1033
  "name"?: string;
951
1034
  "onMessage"?: (event: SmoothlyFrameCustomEvent<Message<any>>) => void;
@@ -1166,6 +1249,8 @@ declare namespace LocalJSX {
1166
1249
  }
1167
1250
  interface SmoothlyTableDemo {
1168
1251
  }
1252
+ interface SmoothlyTableDemoFiltered {
1253
+ }
1169
1254
  interface SmoothlyTableExpandableCell {
1170
1255
  "align"?: "left" | "center" | "right";
1171
1256
  "onExpandableChange"?: (event: SmoothlyTableExpandableCellCustomEvent<boolean>) => void;
@@ -1228,6 +1313,9 @@ declare namespace LocalJSX {
1228
1313
  "smoothly-display-amount": SmoothlyDisplayAmount;
1229
1314
  "smoothly-display-date-time": SmoothlyDisplayDateTime;
1230
1315
  "smoothly-display-demo": SmoothlyDisplayDemo;
1316
+ "smoothly-filter": SmoothlyFilter;
1317
+ "smoothly-filter-advanced": SmoothlyFilterAdvanced;
1318
+ "smoothly-filter-input": SmoothlyFilterInput;
1231
1319
  "smoothly-frame": SmoothlyFrame;
1232
1320
  "smoothly-google-font": SmoothlyGoogleFont;
1233
1321
  "smoothly-icon": SmoothlyIcon;
@@ -1263,6 +1351,7 @@ declare namespace LocalJSX {
1263
1351
  "smoothly-table": SmoothlyTable;
1264
1352
  "smoothly-table-cell": SmoothlyTableCell;
1265
1353
  "smoothly-table-demo": SmoothlyTableDemo;
1354
+ "smoothly-table-demo-filtered": SmoothlyTableDemoFiltered;
1266
1355
  "smoothly-table-expandable-cell": SmoothlyTableExpandableCell;
1267
1356
  "smoothly-table-expandable-row": SmoothlyTableExpandableRow;
1268
1357
  "smoothly-table-header": SmoothlyTableHeader;
@@ -1296,6 +1385,9 @@ declare module "@stencil/core" {
1296
1385
  */
1297
1386
  "smoothly-display-date-time": LocalJSX.SmoothlyDisplayDateTime & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayDateTimeElement>;
1298
1387
  "smoothly-display-demo": LocalJSX.SmoothlyDisplayDemo & JSXBase.HTMLAttributes<HTMLSmoothlyDisplayDemoElement>;
1388
+ "smoothly-filter": LocalJSX.SmoothlyFilter & JSXBase.HTMLAttributes<HTMLSmoothlyFilterElement>;
1389
+ "smoothly-filter-advanced": LocalJSX.SmoothlyFilterAdvanced & JSXBase.HTMLAttributes<HTMLSmoothlyFilterAdvancedElement>;
1390
+ "smoothly-filter-input": LocalJSX.SmoothlyFilterInput & JSXBase.HTMLAttributes<HTMLSmoothlyFilterInputElement>;
1299
1391
  "smoothly-frame": LocalJSX.SmoothlyFrame & JSXBase.HTMLAttributes<HTMLSmoothlyFrameElement>;
1300
1392
  "smoothly-google-font": LocalJSX.SmoothlyGoogleFont & JSXBase.HTMLAttributes<HTMLSmoothlyGoogleFontElement>;
1301
1393
  "smoothly-icon": LocalJSX.SmoothlyIcon & JSXBase.HTMLAttributes<HTMLSmoothlyIconElement>;
@@ -1331,6 +1423,7 @@ declare module "@stencil/core" {
1331
1423
  "smoothly-table": LocalJSX.SmoothlyTable & JSXBase.HTMLAttributes<HTMLSmoothlyTableElement>;
1332
1424
  "smoothly-table-cell": LocalJSX.SmoothlyTableCell & JSXBase.HTMLAttributes<HTMLSmoothlyTableCellElement>;
1333
1425
  "smoothly-table-demo": LocalJSX.SmoothlyTableDemo & JSXBase.HTMLAttributes<HTMLSmoothlyTableDemoElement>;
1426
+ "smoothly-table-demo-filtered": LocalJSX.SmoothlyTableDemoFiltered & JSXBase.HTMLAttributes<HTMLSmoothlyTableDemoFilteredElement>;
1334
1427
  "smoothly-table-expandable-cell": LocalJSX.SmoothlyTableExpandableCell & JSXBase.HTMLAttributes<HTMLSmoothlyTableExpandableCellElement>;
1335
1428
  "smoothly-table-expandable-row": LocalJSX.SmoothlyTableExpandableRow & JSXBase.HTMLAttributes<HTMLSmoothlyTableExpandableRowElement>;
1336
1429
  "smoothly-table-header": LocalJSX.SmoothlyTableHeader & JSXBase.HTMLAttributes<HTMLSmoothlyTableHeaderElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoothly",
3
- "version": "0.3.33",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "Web component library written in Stencil.",
5
5
  "author": "PayFunc",
6
6
  "license": "MIT",
@@ -69,9 +69,11 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "authly": "3.0.1",
72
+ "cloudly-http": "^0.1.1",
72
73
  "isoly": "^2.0.13",
73
74
  "langly": "2.0.1",
74
75
  "normalize.css": "^8.0.1",
76
+ "selectively": "^2.0.2",
75
77
  "stencil-router-v2": "^0.6.0",
76
78
  "tidily": "0.0.53"
77
79
  },