smoothly 0.1.115 → 0.1.118
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/loader.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_51.cjs.entry.js +7 -35
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/app/style.css +6 -7
- package/dist/collection/components/menu-options/style.css +2 -2
- package/dist/collection/components/picker/style.css +14 -14
- package/dist/collection/components/selector/style.css +3 -3
- package/dist/collection/components/tab/style.css +3 -3
- package/dist/collection/components/table/{exandable → expandable}/cell/index.js +0 -0
- package/dist/collection/components/table/{exandable → expandable}/cell/style.css +0 -0
- package/dist/collection/components/table/{exandable → expandable}/row/index.js +0 -0
- package/dist/collection/components/table/{exandable → expandable}/row/style.css +0 -0
- package/dist/collection/components/table/header/index.js +2 -84
- package/dist/collection/components/table/header/style.css +2 -8
- package/dist/collection/components/table/index.js +1 -29
- package/dist/custom-elements/index.js +9 -37
- package/dist/esm/loader.js +1 -1
- package/dist/esm/smoothly-accordion_51.entry.js +7 -35
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/p-4b456da6.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/table/{exandable → expandable}/cell/index.d.ts +0 -0
- package/dist/types/components/table/{exandable → expandable}/row/index.d.ts +0 -0
- package/dist/types/components/table/header/index.d.ts +0 -9
- package/dist/types/components/table/index.d.ts +0 -7
- package/dist/types/components.d.ts +0 -6
- package/package.json +1 -1
- package/dist/smoothly/p-18a1063c.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[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"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]],[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-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[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-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table"
|
|
17
|
+
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[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"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]],[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-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[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-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table"],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]],[6,"smoothly-table-header"],[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540]}],[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],"currency":[513],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[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]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -102,7 +102,7 @@ const SmoothlyAccordionItem = class {
|
|
|
102
102
|
};
|
|
103
103
|
SmoothlyAccordionItem.style = styleCss$G;
|
|
104
104
|
|
|
105
|
-
const styleCss$F = "smoothly-app{display:block;scrollbar-width:none}smoothly-app[hidden]{display:none}smoothly-app[color=default],smoothly-app:not([color]){--smoothly-app-background:var(--smoothly-default-color);--smoothly-app-color:var(--smoothly-default-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-default-shadow)}smoothly-app[color=primary]{--smoothly-app-background:var(--smoothly-primary-shade);--smoothly-app-color:var(--smoothly-primary-contrast);--smoothly-app-hover-background:var(--smoothly-secondary-color);--smoothly-app-hover-color:var(--smoothly-secondary-contrast);--smoothly-app-shadow:var(--smoothly-primary-shadow)}smoothly-app[color=secondary]{--smoothly-app-background:var(--smoothly-secondary-shade);--smoothly-app-color:var(--smoothly-secondary-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-secondary-shadow)}smoothly-app[color=tertiary],smoothly-app[color=success],smoothly-app[color=warning],smoothly-app[color=danger]{--smoothly-app-background:var(--smoothly-color-shade);--smoothly-app-color:var(--smoothly-color-contrast);--smoothly-app-hover-background:var(--smoothly-default-shade);--smoothly-app-hover-color:var(--smoothly-default-contrast);--smoothly-app-shadow:var(--smoothly-color-shadow)}smoothly-app>smoothly-notifier>header{position:fixed;top:0;left:0;width:100%;z-index:5;height:
|
|
105
|
+
const styleCss$F = "smoothly-app{display:block;scrollbar-width:none}smoothly-app[hidden]{display:none}smoothly-app[color=default],smoothly-app:not([color]){--smoothly-app-background:var(--smoothly-default-color);--smoothly-app-color:var(--smoothly-default-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-default-shadow)}smoothly-app[color=primary]{--smoothly-app-background:var(--smoothly-primary-shade);--smoothly-app-color:var(--smoothly-primary-contrast);--smoothly-app-hover-background:var(--smoothly-secondary-color);--smoothly-app-hover-color:var(--smoothly-secondary-contrast);--smoothly-app-shadow:var(--smoothly-primary-shadow)}smoothly-app[color=secondary]{--smoothly-app-background:var(--smoothly-secondary-shade);--smoothly-app-color:var(--smoothly-secondary-contrast);--smoothly-app-hover-background:var(--smoothly-primary-color);--smoothly-app-hover-color:var(--smoothly-primary-contrast);--smoothly-app-shadow:var(--smoothly-secondary-shadow)}smoothly-app[color=tertiary],smoothly-app[color=success],smoothly-app[color=warning],smoothly-app[color=danger]{--smoothly-app-background:var(--smoothly-color-shade);--smoothly-app-color:var(--smoothly-color-contrast);--smoothly-app-hover-background:var(--smoothly-default-shade);--smoothly-app-hover-color:var(--smoothly-default-contrast);--smoothly-app-shadow:var(--smoothly-color-shadow)}smoothly-app>smoothly-notifier>header{position:fixed;top:0;left:0;width:100%;z-index:5;height:5rem;background-color:rgb(var(--smoothly-app-background));color:rgba(var(--smoothly-medium-color));fill:rgb(var(--smoothly-medium-color));stroke:rgb(var(--smoothly-medium-color));display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 5px 0 rgba(var(--smoothly-app-shadow));border-bottom:1px solid rgba(var(--smoothly-dark-color))}smoothly-app>smoothly-notifier>header a{color:inherit;text-decoration:inherit}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2}smoothly-app>smoothly-notifier>header>h1,smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul,smoothly-app>smoothly-notifier>header>nav>ul>li,smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a){display:flex;height:100%;margin:0}smoothly-app>smoothly-notifier>header>h1{margin-left:3.8rem}smoothly-app>smoothly-notifier>header>h1>a{overflow:hidden;user-select:none;height:200%;display:flex;align-self:center;size:100%;background-position-y:center}smoothly-app>smoothly-notifier>header>nav>ul>li a{line-height:1.6cm}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>[slot=header]{display:flex;margin-right:2.1rem;justify-content:flex-end;border:0}smoothly-app>smoothly-notifier>header>[slot=header]>a{display:flex;align-self:center;border-width:0;align-items:center;margin-right:3.9rem}smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon{fill:rgb(var(--smoothly-primary-shade));stroke:rgb(var(--smoothly-primary-shade));color:rgb(var(--smoothly-primary-shade))}smoothly-app>smoothly-notifier>header>nav>ul>li a{display:flex;height:2.3rem;margin:0 0.4cm;text-decoration:none}smoothly-app>smoothly-notifier>header>nav>ul>li>a{display:flex;align-items:center;align-self:center;margin-bottom:2px}smoothly-app>smoothly-notifier>header>nav>ul>li smoothly-trigger.sc-smoothly-trigger-h{border:0}smoothly-app>smoothly-notifier>header>nav>ul>li>a>smoothly-icon>svg{fill:rgb(var(--smoothly-medium-color));stroke:rgb(var(--smoothly-medium-color));color:rgb(var(--smoothly-medium-color));align-items:center;display:flex}smoothly-app>smoothly-notifier>header>nav>ul>li>a:hover>smoothly-icon>svg,smoothly-app>smoothly-notifier>header>nav>ul>li>a.active>smoothly-icon>svg{color:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color))}smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger.active a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li>smoothly-trigger:hover a>smoothly-icon,smoothly-app>smoothly-notifier>header>nav>ul>li a:hover,smoothly-app>smoothly-notifier>header>nav>ul>li a.active{border-bottom:2px solid rgb(var(--smoothly-app-color));margin-bottom:0px;border-bottom-width:2px;color:rgb(var(--smoothly-app-color));stroke:rgb(var(--smoothly-app-color));fill:rgb(var(--smoothly-app-color))}smoothly-app>smoothly-notifier>main{position:relative;top:5.6rem}";
|
|
106
106
|
|
|
107
107
|
const SmoothlyApp = class {
|
|
108
108
|
constructor(hostRef) {
|
|
@@ -46224,7 +46224,7 @@ const Item = class {
|
|
|
46224
46224
|
};
|
|
46225
46225
|
Item.style = styleCss$p;
|
|
46226
46226
|
|
|
46227
|
-
const styleCss$o = ":host{max-height:
|
|
46227
|
+
const styleCss$o = ":host{max-height:18.75rem;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 1.5rem rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}:host:first-child{margin:10em}";
|
|
46228
46228
|
|
|
46229
46229
|
const SmoothlyMenuOptions = class {
|
|
46230
46230
|
constructor(hostRef) {
|
|
@@ -46433,7 +46433,7 @@ const SmoothlyOption = class {
|
|
|
46433
46433
|
};
|
|
46434
46434
|
SmoothlyOption.style = styleCss$l;
|
|
46435
46435
|
|
|
46436
|
-
const styleCss$k = ":host{--background-color:var(--smoothly-default-color), 1;--color:var(--smoothly-secondary-contrast);--border-color:var(--smoothly-default-shade), 1;--border-highlight-color:var(--smoothly-secondary-contrast), 1;--label-color:var(--smoothly-secondary-contrast), 0.8;--selected-item-border-radius:0.25rem;--selected-item-background-color:var(--smoothly-secondary-color), 1;--selected-item-color:255, 255, 255, 1}:host{display:block;position:relative;background-color:rgba(var(--background-color));width:100%;cursor:pointer;--intergiro-transition:border-color 200ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:var(--intergiro-transition);border:1px solid rgb(var(--border-color));margin:1px;height:
|
|
46436
|
+
const styleCss$k = ":host{--background-color:var(--smoothly-default-color), 1;--color:var(--smoothly-secondary-contrast);--border-color:var(--smoothly-default-shade), 1;--border-highlight-color:var(--smoothly-secondary-contrast), 1;--label-color:var(--smoothly-secondary-contrast), 0.8;--selected-item-border-radius:0.25rem;--selected-item-background-color:var(--smoothly-secondary-color), 1;--selected-item-color:255, 255, 255, 1}:host{display:block;position:relative;background-color:rgba(var(--background-color));width:100%;cursor:pointer;--intergiro-transition:border-color 200ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:var(--intergiro-transition);border:1px solid rgb(var(--border-color));margin:1px;height:2.5rem;border-radius:0.25rem}:host(:focus-within){border-color:rgb(var(--smoothly-primary-shade));border-width:2px;margin:0px}:host>div{display:flex;background-color:transparent;min-height:2.5rem;align-items:center;align-self:center;border:none;max-height:var(--max-height)}:host>div .icons>smoothly-icon{flex-shrink:0;padding-left:0.6em;stroke:rgba(var(--color), 0.4);fill:rgba(var(--color), 0.4);width:1.5em !important;height:1.5em !important}:host>div .icons>smoothly-icon:hover{fill:rgba(var(--color), 1)}:host>div input{width:100%;background-color:transparent;outline:none;border:none;cursor:pointer;color:rgb(var(--color));padding:0 0.6rem;font-family:var(--smoothly-font-family);font-size:1.05rem}:host>div input::placeholder{opacity:1;text-overflow:ellipsis}:host([is-open])>div input{color:rgb(var(--smoothly-medium-color))}:host(:not(:focus-within)[multiple]) ul>li:last-child{position:absolute;pointer-events:none}:host([label=\"\"]) ul,:host:not([label]) ul,:host([label-setting=hide]) ul{padding-top:0.1rem;padding-bottom:0.1rem}label{padding-left:0.6rem;white-space:nowrap;color:rgba(var(--label-color));transition:var(--intergiro-transition);font-family:var(--smoothly-font-family);pointer-events:none;transform-origin:left}:host([has-selection]) label{display:var(--label-display)}:host([has-selection]) label,:host(:focus-within) label{display:none}:host(:hover) smoothly-icon[data-arrow],:host(:focus-within) smoothly-icon[data-arrow]{stroke:rgba(var(--color), 1)}:host smoothly-icon[data-arrow]{pointer-events:none}:host smoothly-icon{flex-shrink:0;width:1rem;height:1rem}:host(:not([is-open])) smoothly-icon.up,:host([is-open]) smoothly-icon.down{display:none}smoothly-icon.search{display:flex;align-self:center;padding-left:0.8rem}smoothly-icon.up,smoothly-icon.down{display:flex;align-self:center;padding-right:0.8rem;stroke:rgb(var(--smoothly-primary-shade))}:host smoothly-menu-options{margin-top:0.5rem;padding-top:0.5rem;padding-bottom:0.5rem;position:absolute;z-index:1}:host(:not([is-open]))>smoothly-menu-options{display:none}";
|
|
46437
46437
|
|
|
46438
46438
|
const SmoothlyPicker = class {
|
|
46439
46439
|
constructor(hostRef) {
|
|
@@ -46757,7 +46757,7 @@ const SmoothlySelectDemo = class {
|
|
|
46757
46757
|
};
|
|
46758
46758
|
SmoothlySelectDemo.style = styleCss$f;
|
|
46759
46759
|
|
|
46760
|
-
const styleCss$e = ".sc-smoothly-selector-h{position:relative;height:100%}.sc-smoothly-selector-h>main.sc-smoothly-selector,.sc-smoothly-selector-h>main.sc-smoothly-selector>*.sc-smoothly-selector{height:100%;display:flex;align-items:center}.sc-smoothly-selector-h>div.sc-smoothly-selector>nav.sc-smoothly-selector{display:flex;flex-direction:column;position:absolute;z-index:10}.sc-smoothly-selector-h>aside.sc-smoothly-selector{position:absolute;top:0;left:5em;z-index:10;background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast));height:
|
|
46760
|
+
const styleCss$e = ".sc-smoothly-selector-h{position:relative;height:100%}.sc-smoothly-selector-h>main.sc-smoothly-selector,.sc-smoothly-selector-h>main.sc-smoothly-selector>*.sc-smoothly-selector{height:100%;display:flex;align-items:center}.sc-smoothly-selector-h>div.sc-smoothly-selector>nav.sc-smoothly-selector{display:flex;flex-direction:column;position:absolute;z-index:10}.sc-smoothly-selector-h>aside.sc-smoothly-selector{position:absolute;top:0;left:5em;z-index:10;background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast));height:1.25rem;border-radius:0.3rem;padding:0.3rem;display:flex;align-items:center}.missing.sc-smoothly-selector-h>aside.sc-smoothly-selector{background-color:rgb(var(--smoothly-warning-color));color:rgb(var(--smoothly-warning-contast))}.hidden.sc-smoothly-selector{display:none}.sc-smoothly-selector-h>section.sc-smoothly-selector{position:fixed;top:0px;left:0px;width:100vw;height:100vh;z-index:10}";
|
|
46761
46761
|
|
|
46762
46762
|
const Selector = class {
|
|
46763
46763
|
constructor(hostRef) {
|
|
@@ -46993,7 +46993,7 @@ const SmoothlySvg = class {
|
|
|
46993
46993
|
};
|
|
46994
46994
|
SmoothlySvg.style = styleCss$a;
|
|
46995
46995
|
|
|
46996
|
-
const styleCss$9 = ".sc-smoothly-tab-h:not([open])>label.sc-smoothly-tab{background-color:rgb(var(--smoothly-dark-shade))}.hide.sc-smoothly-tab{display:none}label.sc-smoothly-tab{display:block;padding:1em;background-color:rgb(var(--smoothly-default-shade));border-top-left-radius:
|
|
46996
|
+
const styleCss$9 = ".sc-smoothly-tab-h:not([open])>label.sc-smoothly-tab{background-color:rgb(var(--smoothly-dark-shade))}.hide.sc-smoothly-tab{display:none}label.sc-smoothly-tab{display:block;padding:1em;background-color:rgb(var(--smoothly-default-shade));border-top-left-radius:0.3rem;border-top-right-radius:0.3rem;width:6.25rem}div.sc-smoothly-tab{background-color:rgb(var(--smoothly-default-shade));padding:1em}";
|
|
46997
46997
|
|
|
46998
46998
|
const SmoothlyTab = class {
|
|
46999
46999
|
constructor(hostRef) {
|
|
@@ -47053,12 +47053,6 @@ const styleCss$7 = ".sc-smoothly-table-h{display:table;text-align:left;border-co
|
|
|
47053
47053
|
const Table = class {
|
|
47054
47054
|
constructor(hostRef) {
|
|
47055
47055
|
index.registerInstance(this, hostRef);
|
|
47056
|
-
this.loadMore = index.createEvent(this, "loadMore", 7);
|
|
47057
|
-
}
|
|
47058
|
-
onSort(event) {
|
|
47059
|
-
if (this.sortedOn && this.sortedOn != event.target)
|
|
47060
|
-
this.sortedOn.sortDirection = undefined;
|
|
47061
|
-
this.sortedOn = event.target;
|
|
47062
47056
|
}
|
|
47063
47057
|
render() {
|
|
47064
47058
|
return [index.h("slot", null)];
|
|
@@ -47157,36 +47151,14 @@ const TableExpandableRow = class {
|
|
|
47157
47151
|
};
|
|
47158
47152
|
TableExpandableRow.style = styleCss$3;
|
|
47159
47153
|
|
|
47160
|
-
const styleCss$2 = ".sc-smoothly-table-header-h{display:table-cell;padding
|
|
47154
|
+
const styleCss$2 = ".sc-smoothly-table-header-h{display:table-cell;padding:0.75rem 0.5rem;background-color:rgb(var(--smoothly-default-color));border:1px solid rgb(var(--smoothly-dark-color), 0.5);line-height:2.5rem}";
|
|
47161
47155
|
|
|
47162
47156
|
const TableHeader = class {
|
|
47163
47157
|
constructor(hostRef) {
|
|
47164
47158
|
index.registerInstance(this, hostRef);
|
|
47165
|
-
this.sort = index.createEvent(this, "sort", 7);
|
|
47166
|
-
}
|
|
47167
|
-
onClick(event) {
|
|
47168
|
-
this.sort.emit({
|
|
47169
|
-
property: this.name,
|
|
47170
|
-
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
47171
|
-
});
|
|
47172
|
-
console.log("sort", this.name, this.sortDirection);
|
|
47173
|
-
event.preventDefault();
|
|
47174
|
-
event.stopPropagation();
|
|
47175
47159
|
}
|
|
47176
47160
|
render() {
|
|
47177
|
-
return
|
|
47178
|
-
}
|
|
47179
|
-
renderSortIcon() {
|
|
47180
|
-
let result;
|
|
47181
|
-
switch (this.sortDirection) {
|
|
47182
|
-
case "ascending":
|
|
47183
|
-
result = index.h("ion-icon", { name: "chevron-up-outline", class: "sort-icon" });
|
|
47184
|
-
break;
|
|
47185
|
-
case "descending":
|
|
47186
|
-
result = index.h("ion-icon", { name: "chevron-down-outline", class: "sort-icon" });
|
|
47187
|
-
break;
|
|
47188
|
-
}
|
|
47189
|
-
return result;
|
|
47161
|
+
return index.h("slot", null);
|
|
47190
47162
|
}
|
|
47191
47163
|
};
|
|
47192
47164
|
TableHeader.style = styleCss$2;
|
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[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"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]],[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-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[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-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table"
|
|
18
|
+
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[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"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]],[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-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[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-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table"],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]],[6,"smoothly-table-header"],[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540]}],[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],"currency":[513],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[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]}]]]], options);
|
|
19
19
|
});
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"./components/table/index.js",
|
|
48
48
|
"./components/table/cell/index.js",
|
|
49
49
|
"./components/table/demo/index.js",
|
|
50
|
-
"./components/table/
|
|
51
|
-
"./components/table/
|
|
50
|
+
"./components/table/expandable/cell/index.js",
|
|
51
|
+
"./components/table/expandable/row/index.js",
|
|
52
52
|
"./components/table/header/index.js",
|
|
53
53
|
"./components/table/row/index.js",
|
|
54
54
|
"./components/trigger/index.js",
|
|
@@ -43,13 +43,12 @@ smoothly-app>smoothly-notifier>header {
|
|
|
43
43
|
left: 0;
|
|
44
44
|
width: 100%;
|
|
45
45
|
z-index: 5;
|
|
46
|
-
height:
|
|
46
|
+
height: 5rem;
|
|
47
47
|
background-color: rgb(var(--smoothly-app-background));
|
|
48
48
|
color: rgba(var(--smoothly-medium-color));
|
|
49
49
|
fill: rgb(var(--smoothly-medium-color));
|
|
50
50
|
stroke: rgb(var(--smoothly-medium-color));
|
|
51
51
|
display: flex;
|
|
52
|
-
font-size: 18px;
|
|
53
52
|
justify-content: space-between;
|
|
54
53
|
align-items: center;
|
|
55
54
|
box-shadow: 0 2px 5px 0 rgba(var(--smoothly-app-shadow));
|
|
@@ -73,7 +72,7 @@ smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a) {
|
|
|
73
72
|
margin: 0;
|
|
74
73
|
}
|
|
75
74
|
smoothly-app>smoothly-notifier>header>h1 {
|
|
76
|
-
margin-left:
|
|
75
|
+
margin-left: 3.8rem;
|
|
77
76
|
}
|
|
78
77
|
smoothly-app>smoothly-notifier>header>h1>a {
|
|
79
78
|
overflow: hidden;
|
|
@@ -92,7 +91,7 @@ smoothly-app>smoothly-notifier>header>nav>ul {
|
|
|
92
91
|
}
|
|
93
92
|
smoothly-app>smoothly-notifier>header>[slot=header] {
|
|
94
93
|
display: flex;
|
|
95
|
-
margin-right:
|
|
94
|
+
margin-right: 2.1rem;
|
|
96
95
|
justify-content: flex-end;
|
|
97
96
|
border: 0;
|
|
98
97
|
}
|
|
@@ -101,7 +100,7 @@ smoothly-app>smoothly-notifier>header>[slot=header]>a {
|
|
|
101
100
|
align-self: center;
|
|
102
101
|
border-width: 0;
|
|
103
102
|
align-items: center;
|
|
104
|
-
margin-right:
|
|
103
|
+
margin-right: 3.9rem;
|
|
105
104
|
}
|
|
106
105
|
smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon {
|
|
107
106
|
fill: rgb(var(--smoothly-primary-shade));
|
|
@@ -110,7 +109,7 @@ smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon {
|
|
|
110
109
|
}
|
|
111
110
|
smoothly-app>smoothly-notifier>header>nav>ul>li a {
|
|
112
111
|
display: flex;
|
|
113
|
-
height:
|
|
112
|
+
height: 2.3rem;
|
|
114
113
|
margin: 0 0.4cm;
|
|
115
114
|
text-decoration: none;
|
|
116
115
|
}
|
|
@@ -149,5 +148,5 @@ smoothly-app>smoothly-notifier>header>nav>ul>li a.active {
|
|
|
149
148
|
}
|
|
150
149
|
smoothly-app>smoothly-notifier>main {
|
|
151
150
|
position: relative;
|
|
152
|
-
top:
|
|
151
|
+
top: 5.6rem;
|
|
153
152
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
max-height:
|
|
2
|
+
max-height: 18.75rem;
|
|
3
3
|
width: 85%;
|
|
4
4
|
max-height: var(--max-menu-height);
|
|
5
5
|
box-sizing: border-box;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
color: rgb(var(--smoothly-primary-color));
|
|
9
9
|
stroke: rgb(var(--smoothly-primary-color));
|
|
10
10
|
fill: rgb(var(--smoothly-primary-color));
|
|
11
|
-
box-shadow: 0px 2px
|
|
11
|
+
box-shadow: 0px 2px 1.5rem rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);
|
|
12
12
|
overflow-y: auto;
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
transition: var(--intergiro-transition);
|
|
20
20
|
border: 1px solid rgb(var(--border-color));
|
|
21
21
|
margin: 1px;
|
|
22
|
-
height:
|
|
22
|
+
height: 2.5rem;
|
|
23
23
|
border-radius: 0.25rem;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
:host > div {
|
|
33
33
|
display: flex;
|
|
34
34
|
background-color: transparent;
|
|
35
|
-
min-height:
|
|
35
|
+
min-height: 2.5rem;
|
|
36
36
|
align-items: center;
|
|
37
37
|
align-self: center;
|
|
38
38
|
border: none;
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
border: none;
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
color: rgb(var(--color));
|
|
61
|
-
padding: 0 0.
|
|
61
|
+
padding: 0 0.6rem;
|
|
62
62
|
font-family: var(--smoothly-font-family);
|
|
63
|
-
font-size: 1.
|
|
63
|
+
font-size: 1.05rem;
|
|
64
64
|
}
|
|
65
65
|
:host > div input::placeholder {
|
|
66
66
|
opacity: 1;
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
:host([label=""]) ul,
|
|
82
82
|
:host:not([label]) ul,
|
|
83
83
|
:host([label-setting=hide]) ul {
|
|
84
|
-
padding-top: 0.
|
|
85
|
-
padding-bottom: 0.
|
|
84
|
+
padding-top: 0.1rem;
|
|
85
|
+
padding-bottom: 0.1rem;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
label {
|
|
89
|
-
padding-left: 0.
|
|
89
|
+
padding-left: 0.6rem;
|
|
90
90
|
white-space: nowrap;
|
|
91
91
|
color: rgba(var(--label-color));
|
|
92
92
|
transition: var(--intergiro-transition);
|
|
@@ -115,8 +115,8 @@ label {
|
|
|
115
115
|
|
|
116
116
|
:host smoothly-icon {
|
|
117
117
|
flex-shrink: 0;
|
|
118
|
-
width:
|
|
119
|
-
height:
|
|
118
|
+
width: 1rem;
|
|
119
|
+
height: 1rem;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
:host(:not([is-open])) smoothly-icon.up,
|
|
@@ -127,21 +127,21 @@ label {
|
|
|
127
127
|
smoothly-icon.search {
|
|
128
128
|
display: flex;
|
|
129
129
|
align-self: center;
|
|
130
|
-
padding-left: 0.
|
|
130
|
+
padding-left: 0.8rem;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
smoothly-icon.up,
|
|
134
134
|
smoothly-icon.down {
|
|
135
135
|
display: flex;
|
|
136
136
|
align-self: center;
|
|
137
|
-
padding-right: 0.
|
|
137
|
+
padding-right: 0.8rem;
|
|
138
138
|
stroke: rgb(var(--smoothly-primary-shade));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
:host smoothly-menu-options {
|
|
142
|
-
margin-top: 0.
|
|
143
|
-
padding-top: 0.
|
|
144
|
-
padding-bottom: 0.
|
|
142
|
+
margin-top: 0.5rem;
|
|
143
|
+
padding-top: 0.5rem;
|
|
144
|
+
padding-bottom: 0.5rem;
|
|
145
145
|
position: absolute;
|
|
146
146
|
z-index: 1;
|
|
147
147
|
}
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
z-index: 10;
|
|
24
24
|
background-color: rgb(var(--smoothly-tertiary-color));
|
|
25
25
|
color: rgb(var(--smoothly-tertiary-contrast));
|
|
26
|
-
height:
|
|
27
|
-
border-radius:
|
|
28
|
-
padding:
|
|
26
|
+
height: 1.25rem;
|
|
27
|
+
border-radius: 0.3rem;
|
|
28
|
+
padding: 0.3rem;
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
}
|
|
@@ -8,9 +8,9 @@ label {
|
|
|
8
8
|
display: block;
|
|
9
9
|
padding: 1em;
|
|
10
10
|
background-color: rgb(var(--smoothly-default-shade));
|
|
11
|
-
border-top-left-radius:
|
|
12
|
-
border-top-right-radius:
|
|
13
|
-
width:
|
|
11
|
+
border-top-left-radius: 0.3rem;
|
|
12
|
+
border-top-right-radius: 0.3rem;
|
|
13
|
+
width: 6.25rem;
|
|
14
14
|
|
|
15
15
|
}
|
|
16
16
|
div {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, h } from "@stencil/core";
|
|
2
2
|
export class TableHeader {
|
|
3
|
-
onClick(event) {
|
|
4
|
-
this.sort.emit({
|
|
5
|
-
property: this.name,
|
|
6
|
-
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
7
|
-
});
|
|
8
|
-
console.log("sort", this.name, this.sortDirection);
|
|
9
|
-
event.preventDefault();
|
|
10
|
-
event.stopPropagation();
|
|
11
|
-
}
|
|
12
3
|
render() {
|
|
13
|
-
return
|
|
14
|
-
h("slot", null),
|
|
15
|
-
this.renderSortIcon()));
|
|
16
|
-
}
|
|
17
|
-
renderSortIcon() {
|
|
18
|
-
let result;
|
|
19
|
-
switch (this.sortDirection) {
|
|
20
|
-
case "ascending":
|
|
21
|
-
result = h("ion-icon", { name: "chevron-up-outline", class: "sort-icon" });
|
|
22
|
-
break;
|
|
23
|
-
case "descending":
|
|
24
|
-
result = h("ion-icon", { name: "chevron-down-outline", class: "sort-icon" });
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
return result;
|
|
4
|
+
return h("slot", null);
|
|
28
5
|
}
|
|
29
6
|
static get is() { return "smoothly-table-header"; }
|
|
30
7
|
static get encapsulation() { return "scoped"; }
|
|
@@ -34,63 +11,4 @@ export class TableHeader {
|
|
|
34
11
|
static get styleUrls() { return {
|
|
35
12
|
"$": ["style.css"]
|
|
36
13
|
}; }
|
|
37
|
-
static get properties() { return {
|
|
38
|
-
"name": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"mutable": false,
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "string",
|
|
43
|
-
"resolved": "string",
|
|
44
|
-
"references": {}
|
|
45
|
-
},
|
|
46
|
-
"required": false,
|
|
47
|
-
"optional": false,
|
|
48
|
-
"docs": {
|
|
49
|
-
"tags": [],
|
|
50
|
-
"text": ""
|
|
51
|
-
},
|
|
52
|
-
"attribute": "name",
|
|
53
|
-
"reflect": false
|
|
54
|
-
},
|
|
55
|
-
"sortDirection": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"mutable": true,
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "\"ascending\" | \"descending\"",
|
|
60
|
-
"resolved": "\"ascending\" | \"descending\" | undefined",
|
|
61
|
-
"references": {}
|
|
62
|
-
},
|
|
63
|
-
"required": false,
|
|
64
|
-
"optional": true,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": ""
|
|
68
|
-
},
|
|
69
|
-
"attribute": "sort-direction",
|
|
70
|
-
"reflect": false
|
|
71
|
-
}
|
|
72
|
-
}; }
|
|
73
|
-
static get events() { return [{
|
|
74
|
-
"method": "sort",
|
|
75
|
-
"name": "sort",
|
|
76
|
-
"bubbles": true,
|
|
77
|
-
"cancelable": true,
|
|
78
|
-
"composed": true,
|
|
79
|
-
"docs": {
|
|
80
|
-
"tags": [],
|
|
81
|
-
"text": ""
|
|
82
|
-
},
|
|
83
|
-
"complexType": {
|
|
84
|
-
"original": "{ property: string; direction: \"ascending\" | \"descending\" }",
|
|
85
|
-
"resolved": "{ property: string; direction: \"ascending\" | \"descending\"; }",
|
|
86
|
-
"references": {}
|
|
87
|
-
}
|
|
88
|
-
}]; }
|
|
89
|
-
static get listeners() { return [{
|
|
90
|
-
"name": "click",
|
|
91
|
-
"method": "onClick",
|
|
92
|
-
"target": undefined,
|
|
93
|
-
"capture": false,
|
|
94
|
-
"passive": false
|
|
95
|
-
}]; }
|
|
96
14
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: table-cell;
|
|
3
|
-
padding
|
|
4
|
-
padding-bottom: 12px;
|
|
3
|
+
padding: 0.75rem 0.5rem;
|
|
5
4
|
background-color: rgb(var(--smoothly-default-color));
|
|
6
5
|
border: 1px solid rgb(var(--smoothly-dark-color), 0.5);
|
|
7
|
-
|
|
8
|
-
line-height: 40px;
|
|
9
|
-
}
|
|
10
|
-
:host > ion-icon {
|
|
11
|
-
height: 12px;
|
|
12
|
-
margin-left: 20px;
|
|
6
|
+
line-height: 2.5rem;
|
|
13
7
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { Component, Element,
|
|
1
|
+
import { Component, Element, h } from "@stencil/core";
|
|
2
2
|
export class Table {
|
|
3
|
-
onSort(event) {
|
|
4
|
-
if (this.sortedOn && this.sortedOn != event.target)
|
|
5
|
-
this.sortedOn.sortDirection = undefined;
|
|
6
|
-
this.sortedOn = event.target;
|
|
7
|
-
}
|
|
8
3
|
render() {
|
|
9
4
|
return [h("slot", null)];
|
|
10
5
|
}
|
|
@@ -16,28 +11,5 @@ export class Table {
|
|
|
16
11
|
static get styleUrls() { return {
|
|
17
12
|
"$": ["style.css"]
|
|
18
13
|
}; }
|
|
19
|
-
static get events() { return [{
|
|
20
|
-
"method": "loadMore",
|
|
21
|
-
"name": "loadMore",
|
|
22
|
-
"bubbles": true,
|
|
23
|
-
"cancelable": true,
|
|
24
|
-
"composed": true,
|
|
25
|
-
"docs": {
|
|
26
|
-
"tags": [],
|
|
27
|
-
"text": ""
|
|
28
|
-
},
|
|
29
|
-
"complexType": {
|
|
30
|
-
"original": "void",
|
|
31
|
-
"resolved": "void",
|
|
32
|
-
"references": {}
|
|
33
|
-
}
|
|
34
|
-
}]; }
|
|
35
14
|
static get elementRef() { return "element"; }
|
|
36
|
-
static get listeners() { return [{
|
|
37
|
-
"name": "sort",
|
|
38
|
-
"method": "onSort",
|
|
39
|
-
"target": undefined,
|
|
40
|
-
"capture": false,
|
|
41
|
-
"passive": false
|
|
42
|
-
}]; }
|
|
43
15
|
}
|