@limetech/lime-elements 35.0.0-next.7 → 35.0.0
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/checkbox.template-b6c6562c.js +43 -0
- package/dist/cjs/{component-f7ef9087.js → component-66df95e7.js} +190 -132
- package/dist/cjs/{component-f532119f.js → component-67144c1c.js} +47 -3
- package/dist/cjs/{component-ed21410d.js → component-ae3bfacf.js} +367 -235
- package/dist/cjs/{component-2faaa141.js → component-cf490570.js} +213 -143
- package/dist/cjs/{component-10dbdd60.js → component-dd795ff0.js} +7 -5
- package/dist/cjs/{dateFormatter-26eac73a.js → dateFormatter-34b77ead.js} +37 -31
- package/dist/cjs/{index-e63a89d7.js → index-2a28697b.js} +27 -1
- package/dist/cjs/lime-elements.cjs.js +3 -3
- package/dist/cjs/limel-badge.cjs.entry.js +4 -4
- package/dist/cjs/limel-banner.cjs.entry.js +2 -2
- package/dist/cjs/limel-button-group.cjs.entry.js +3 -3
- package/dist/cjs/limel-button.cjs.entry.js +3 -3
- package/dist/cjs/limel-checkbox.cjs.entry.js +136 -90
- package/dist/cjs/limel-chip-set.cjs.entry.js +235 -191
- package/dist/cjs/limel-circular-progress.cjs.entry.js +3 -3
- package/dist/cjs/limel-code-editor.cjs.entry.js +50 -23
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-config.cjs.entry.js +2 -2
- package/dist/cjs/limel-date-picker.cjs.entry.js +8 -8
- package/dist/cjs/limel-dialog.cjs.entry.js +9 -10
- package/dist/cjs/limel-file.cjs.entry.js +11 -9
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +971 -657
- package/dist/cjs/limel-flex-container.cjs.entry.js +6 -2
- package/dist/cjs/limel-form.cjs.entry.js +423 -449
- package/dist/cjs/limel-grid.cjs.entry.js +2 -2
- package/dist/cjs/limel-header.cjs.entry.js +2 -2
- package/dist/cjs/limel-icon-button.cjs.entry.js +6 -6
- package/dist/cjs/limel-icon.cjs.entry.js +2 -2
- package/dist/cjs/limel-input-field.cjs.entry.js +12 -10
- package/dist/cjs/limel-linear-progress.cjs.entry.js +4 -4
- package/dist/cjs/limel-list_3.cjs.entry.js +154 -91
- package/dist/cjs/limel-menu-list.cjs.entry.js +87 -74
- package/dist/cjs/limel-menu.cjs.entry.js +2 -2
- package/dist/cjs/limel-picker.cjs.entry.js +4 -7
- package/dist/cjs/limel-popover-surface.cjs.entry.js +3 -3
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-progress-flow.cjs.entry.js +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +6 -6
- package/dist/cjs/limel-slider.cjs.entry.js +34 -7
- package/dist/cjs/limel-snackbar.cjs.entry.js +79 -73
- package/dist/cjs/limel-spinner.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +498 -202
- package/dist/cjs/limel-tab-bar.cjs.entry.js +263 -186
- package/dist/cjs/limel-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/limel-table.cjs.entry.js +78 -17
- package/dist/cjs/limel-tooltip_2.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{moment-d287c0ed.js → moment-5c6581b7.js} +94 -79
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/badge/badge.css +9 -15
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/button/button.css +333 -145
- package/dist/collection/components/button-group/button-group.css +30 -5
- package/dist/collection/components/checkbox/checkbox.css +70 -17
- package/dist/collection/components/checkbox/checkbox.js +5 -4
- package/dist/collection/components/checkbox/checkbox.template.js +24 -20
- package/dist/collection/components/chip-set/chip-set.css +367 -34
- package/dist/collection/components/circular-progress/circular-progress.css +2 -2
- package/dist/collection/components/code-editor/code-editor.css +8 -13
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +1 -1
- package/dist/collection/components/dialog/dialog.css +153 -109
- package/dist/collection/components/dialog/dialog.js +7 -0
- package/dist/collection/components/file/icon-background-colors.js +2 -1
- package/dist/collection/components/file/icon-fill-colors.js +2 -1
- package/dist/collection/components/file/icons.js +1 -1
- package/dist/collection/components/flex-container/flex-container.js +10 -0
- package/dist/collection/components/form/fields/schema-field.js +0 -1
- package/dist/collection/components/form/form.css +5 -1
- package/dist/collection/components/form/form.js +34 -0
- package/dist/collection/components/form/form.types.js +0 -1
- package/dist/collection/components/form/templates/common.js +4 -1
- package/dist/collection/components/icon-button/icon-button.css +116 -59
- package/dist/collection/components/icon-button/icon-button.js +1 -0
- package/dist/collection/components/input-field/input-field.css +344 -29
- package/dist/collection/components/input-field/input-field.js +5 -3
- package/dist/collection/components/linear-progress/linear-progress.css +14 -2
- package/dist/collection/components/list/list-renderer.js +1 -4
- package/dist/collection/components/list/list.css +937 -90
- package/dist/collection/components/list/list.js +13 -6
- package/dist/collection/components/menu-list/menu-list-renderer.js +1 -4
- package/dist/collection/components/menu-list/menu-list.css +937 -90
- package/dist/collection/components/menu-surface/menu-surface.css +31 -7
- package/dist/collection/components/picker/picker.js +4 -6
- package/dist/collection/components/popover-surface/popover-surface.css +1 -0
- package/dist/collection/components/select/select.css +424 -17
- package/dist/collection/components/select/select.template.js +1 -1
- package/dist/collection/components/slider/slider.css +49 -2
- package/dist/collection/components/snackbar/snackbar.css +588 -301
- package/dist/collection/components/switch/switch.css +592 -222
- package/dist/collection/components/switch/switch.js +18 -12
- package/dist/collection/components/tab-bar/tab-bar.css +77 -48
- package/dist/collection/components/table/table.css +219 -165
- package/dist/collection/components/table/table.js +104 -19
- package/dist/collection/components/table/table.types.js +0 -1
- package/dist/collection/style/functions.scss +3 -1
- package/dist/collection/style/internal/lime-theme.scss +30 -31
- package/dist/collection/style/internal/lime-typography.scss +55 -56
- package/dist/esm/checkbox.template-2f1bbc98.js +41 -0
- package/dist/esm/{component-89e0ce26.js → component-19eb6e2b.js} +7 -5
- package/dist/esm/{component-2630c3d7.js → component-288691f3.js} +367 -235
- package/dist/esm/{component-d682c974.js → component-410aad5a.js} +44 -4
- package/dist/esm/{component-429e92ee.js → component-5b4ac85a.js} +213 -143
- package/dist/esm/{component-834d85a1.js → component-fffa3419.js} +190 -132
- package/dist/esm/{dateFormatter-c9b41548.js → dateFormatter-ed618478.js} +37 -31
- package/dist/esm/{index-2316f345.js → index-11cd0b60.js} +27 -1
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-badge.entry.js +4 -4
- package/dist/esm/limel-banner.entry.js +2 -2
- package/dist/esm/limel-button-group.entry.js +3 -3
- package/dist/esm/limel-button.entry.js +3 -3
- package/dist/esm/limel-checkbox.entry.js +136 -90
- package/dist/esm/limel-chip-set.entry.js +235 -191
- package/dist/esm/limel-circular-progress.entry.js +3 -3
- package/dist/esm/limel-code-editor.entry.js +50 -23
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-color-picker-palette_2.entry.js +3 -3
- package/dist/esm/limel-color-picker.entry.js +2 -2
- package/dist/esm/limel-config.entry.js +2 -2
- package/dist/esm/limel-date-picker.entry.js +8 -8
- package/dist/esm/limel-dialog.entry.js +9 -10
- package/dist/esm/limel-file.entry.js +11 -9
- package/dist/esm/limel-flatpickr-adapter.entry.js +971 -657
- package/dist/esm/limel-flex-container.entry.js +6 -2
- package/dist/esm/limel-form.entry.js +424 -450
- package/dist/esm/limel-grid.entry.js +2 -2
- package/dist/esm/limel-header.entry.js +2 -2
- package/dist/esm/limel-icon-button.entry.js +6 -6
- package/dist/esm/limel-icon.entry.js +2 -2
- package/dist/esm/limel-input-field.entry.js +12 -10
- package/dist/esm/limel-linear-progress.entry.js +4 -4
- package/dist/esm/limel-list_3.entry.js +154 -91
- package/dist/esm/limel-menu-list.entry.js +87 -74
- package/dist/esm/limel-menu.entry.js +2 -2
- package/dist/esm/limel-picker.entry.js +4 -7
- package/dist/esm/limel-popover-surface.entry.js +3 -3
- package/dist/esm/limel-progress-flow-item.entry.js +2 -2
- package/dist/esm/limel-progress-flow.entry.js +2 -2
- package/dist/esm/limel-select.entry.js +6 -6
- package/dist/esm/limel-slider.entry.js +34 -7
- package/dist/esm/limel-snackbar.entry.js +79 -73
- package/dist/esm/limel-spinner.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +498 -202
- package/dist/esm/limel-tab-bar.entry.js +263 -186
- package/dist/esm/limel-tab-panel.entry.js +2 -2
- package/dist/esm/limel-table.entry.js +78 -17
- package/dist/esm/limel-tooltip_2.entry.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{moment-8dadd938.js → moment-29c213b7.js} +94 -79
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-04b5bc13.entry.js +82 -0
- package/dist/lime-elements/p-101af376.entry.js +1 -0
- package/dist/lime-elements/p-1c284626.js +73 -0
- package/dist/lime-elements/p-1ede893b.js +1 -0
- package/dist/lime-elements/p-2639edf9.entry.js +73 -0
- package/dist/lime-elements/p-2da6e2a3.entry.js +1 -0
- package/dist/lime-elements/p-2ff40ce6.js +3 -0
- package/dist/lime-elements/{p-cd619c16.entry.js → p-358706b6.entry.js} +1 -1
- package/dist/lime-elements/p-36ecbd03.entry.js +1 -0
- package/dist/lime-elements/p-404e1465.entry.js +1 -0
- package/dist/lime-elements/p-42b67933.entry.js +1 -0
- package/dist/lime-elements/p-440454ed.entry.js +1 -0
- package/dist/lime-elements/{p-076bd4dc.js → p-48d4ef20.js} +3 -3
- package/dist/lime-elements/p-53e01330.entry.js +1 -0
- package/dist/lime-elements/p-5908c21d.entry.js +1 -0
- package/dist/lime-elements/p-5b7a8c61.entry.js +20 -0
- package/dist/lime-elements/p-63e25a0a.entry.js +1 -0
- package/dist/lime-elements/p-6e7809a6.entry.js +1 -0
- package/dist/lime-elements/p-705334c1.entry.js +1 -0
- package/dist/lime-elements/p-716a6acd.entry.js +16 -0
- package/dist/lime-elements/p-71efe2ca.entry.js +37 -0
- package/dist/lime-elements/{p-e1928c0e.js → p-72e03943.js} +1 -1
- package/dist/lime-elements/p-80327bb8.entry.js +16 -0
- package/dist/lime-elements/p-83ea517b.entry.js +1 -0
- package/dist/lime-elements/p-87a1e1cb.entry.js +1 -0
- package/dist/lime-elements/{p-8ad5e143.entry.js → p-94899019.entry.js} +1 -1
- package/dist/lime-elements/p-95f275ab.entry.js +1 -0
- package/dist/lime-elements/p-96f4b892.entry.js +131 -0
- package/dist/lime-elements/p-97d6c4a6.entry.js +1 -0
- package/dist/lime-elements/p-a465084b.entry.js +82 -0
- package/dist/lime-elements/p-a5af84a7.entry.js +1 -0
- package/dist/lime-elements/p-b91dc1ef.entry.js +1 -0
- package/dist/lime-elements/p-bd8c9384.entry.js +1 -0
- package/dist/lime-elements/p-c4b38454.entry.js +1 -0
- package/dist/lime-elements/p-c7953a05.entry.js +82 -0
- package/dist/lime-elements/p-c80acfb2.entry.js +59 -0
- package/dist/lime-elements/p-cbc43682.js +81 -0
- package/dist/lime-elements/{p-ace9affc.js → p-d0a7de87.js} +2 -2
- package/dist/lime-elements/p-d1ee4501.entry.js +37 -0
- package/dist/lime-elements/p-d74fa89e.entry.js +1 -0
- package/dist/lime-elements/p-da962c64.entry.js +1 -0
- package/dist/lime-elements/p-dfba92de.js +126 -0
- package/dist/lime-elements/p-dfbe015e.entry.js +1 -0
- package/dist/lime-elements/p-e83dddcd.entry.js +126 -0
- package/dist/lime-elements/p-e98d76e8.entry.js +59 -0
- package/dist/lime-elements/{p-92146da6.js → p-e9a95b8f.js} +1 -1
- package/dist/lime-elements/p-eae8c615.entry.js +1 -0
- package/dist/lime-elements/p-ed65468d.entry.js +1 -0
- package/dist/lime-elements/p-f0c9dadd.entry.js +1 -0
- package/dist/lime-elements/style/functions.scss +3 -1
- package/dist/lime-elements/style/internal/lime-theme.scss +30 -31
- package/dist/lime-elements/style/internal/lime-typography.scss +55 -56
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +3 -2
- package/dist/types/components/checkbox/checkbox.template.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +7 -0
- package/dist/types/components/flex-container/flex-container.d.ts +7 -0
- package/dist/types/components/form/fields/array-field.d.ts +0 -1
- package/dist/types/components/form/fields/object-field.d.ts +2 -2
- package/dist/types/components/form/form.d.ts +8 -1
- package/dist/types/components/form/form.types.d.ts +6 -0
- package/dist/types/components/picker/picker.d.ts +2 -1
- package/dist/types/components/switch/switch.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +10 -1
- package/dist/types/components/table/table.types.d.ts +13 -0
- package/dist/types/components.d.ts +20 -4
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/package.json +30 -43
- package/dist/cjs/checkbox.template-50eb8b76.js +0 -39
- package/dist/esm/checkbox.template-50f7c07b.js +0 -37
- package/dist/lime-elements/p-041ae00c.entry.js +0 -1
- package/dist/lime-elements/p-0ce9165f.entry.js +0 -1
- package/dist/lime-elements/p-0fd208f3.entry.js +0 -82
- package/dist/lime-elements/p-143705b1.entry.js +0 -1
- package/dist/lime-elements/p-1876a96a.entry.js +0 -1
- package/dist/lime-elements/p-1fb5340d.entry.js +0 -1
- package/dist/lime-elements/p-250f55be.js +0 -1
- package/dist/lime-elements/p-29f054cc.entry.js +0 -37
- package/dist/lime-elements/p-31fecf5d.entry.js +0 -1
- package/dist/lime-elements/p-34c7872e.entry.js +0 -1
- package/dist/lime-elements/p-468e940e.entry.js +0 -16
- package/dist/lime-elements/p-4932c029.entry.js +0 -1
- package/dist/lime-elements/p-4b5af81b.entry.js +0 -1
- package/dist/lime-elements/p-510bb5a4.entry.js +0 -1
- package/dist/lime-elements/p-58cbe99d.entry.js +0 -1
- package/dist/lime-elements/p-597cbe05.entry.js +0 -1
- package/dist/lime-elements/p-6003f817.entry.js +0 -1
- package/dist/lime-elements/p-668795a7.js +0 -73
- package/dist/lime-elements/p-714fde78.entry.js +0 -1
- package/dist/lime-elements/p-7476efe0.entry.js +0 -1
- package/dist/lime-elements/p-8707d77b.entry.js +0 -73
- package/dist/lime-elements/p-8a2c1038.entry.js +0 -16
- package/dist/lime-elements/p-902347b9.js +0 -81
- package/dist/lime-elements/p-90c6fa15.js +0 -126
- package/dist/lime-elements/p-90f3e17c.entry.js +0 -37
- package/dist/lime-elements/p-98d50f52.entry.js +0 -1
- package/dist/lime-elements/p-a2cf74c1.entry.js +0 -1
- package/dist/lime-elements/p-a397bab7.js +0 -3
- package/dist/lime-elements/p-a4c532a7.entry.js +0 -1
- package/dist/lime-elements/p-a93f4190.entry.js +0 -82
- package/dist/lime-elements/p-be56ffab.entry.js +0 -1
- package/dist/lime-elements/p-c35874db.entry.js +0 -1
- package/dist/lime-elements/p-c8c8a946.entry.js +0 -59
- package/dist/lime-elements/p-ca664c9f.entry.js +0 -1
- package/dist/lime-elements/p-d2c74396.entry.js +0 -1
- package/dist/lime-elements/p-d48ad9f7.entry.js +0 -126
- package/dist/lime-elements/p-d93a3b07.entry.js +0 -16
- package/dist/lime-elements/p-df8faeb4.entry.js +0 -59
- package/dist/lime-elements/p-dfe0a58b.entry.js +0 -1
- package/dist/lime-elements/p-e275f502.entry.js +0 -37
- package/dist/lime-elements/p-e881e98d.entry.js +0 -1
- package/dist/lime-elements/p-f2c706b8.entry.js +0 -131
- package/dist/lime-elements/p-fc30b8e3.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{c as h}from"./p-6c094f3f.js";import{i as a,a as n}from"./p-cc9ebbef.js";import{D as o}from"./p-72e03943.js";import{M as r}from"./p-1c284626.js";import"./p-eab67c09.js";import"./p-2ff40ce6.js";import"./p-48d4ef20.js";import"./p-cbc43682.js";import"./p-dcc97cc2.js";import"./p-d0a7de87.js";const l={date:"date",time:"time",week:a()?"date":"week",month:"month",quarter:"date",year:"date",datetime:"datetime-local",default:"datetime-local"},d={date:"Y-MM-DD",time:"HH:mm",week:"GGGG-[W]WW",month:"Y-MM","datetime-local":"Y-MM-DD[T]HH:mm"},c=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.type="datetime",this.language="en",this.showPortal=!1,this.portalId=`date-picker-calendar-${h()}`,this.documentClickListener=t=>{"keydown"===t.type&&"Tab"!==t.key||document.querySelector(`#${this.portalId}`).contains(t.target)||this.hideCalendar()},this.handleCalendarChange=this.handleCalendarChange.bind(this),this.handleInputElementChange=this.handleInputElementChange.bind(this),this.showCalendar=this.showCalendar.bind(this),this.dateFormatter=new o(this.language),this.clearValue=this.clearValue.bind(this),this.hideCalendar=this.hideCalendar.bind(this),this.onInputClick=this.onInputClick.bind(this),this.nativeChangeHandler=this.nativeChangeHandler.bind(this),this.preventBlurFromCalendarContainer=this.preventBlurFromCalendarContainer.bind(this)}componentWillLoad(){this.useNative=!this.readonly&&(a()||n()),this.updateInternalFormatAndType(),this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat)}componentWillUpdate(){this.updateInternalFormatAndType()}render(){const t={onAction:this.clearValue};if(this.value&&!this.readonly&&(t.trailingIcon="clear_symbol"),this.useNative)return s("div",{class:"container"},s("limel-input-field",{disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,type:this.nativeType,onChange:this.nativeChangeHandler}));const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("div",{class:"container"},s("limel-input-field",Object.assign({disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,onFocus:this.showCalendar,onBlur:this.hideCalendar,onClick:this.onInputClick,onChange:this.handleInputElementChange,ref:t=>this.textField=t},t)),s("limel-portal",{containerId:this.portalId,visible:this.showPortal,containerStyle:{"z-index":i}},s("limel-flatpickr-adapter",{format:this.internalFormat,language:this.language,type:this.type,value:this.value,ref:t=>this.datePickerCalendar=t,isOpen:this.showPortal,onChange:this.handleCalendarChange})))}onValueChange(t,i){t!==i&&t!==this.formattedValue&&(this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat))}updateInternalFormatAndType(){this.nativeType=l[this.type||"default"],this.nativeFormat=d[this.nativeType],this.internalFormat=this.useNative?this.nativeFormat:this.format?this.format:this.dateFormatter.getDateFormat(this.type)}nativeChangeHandler(t){t.stopPropagation();const i=this.dateFormatter.parseDate(t.detail,this.internalFormat);this.formattedValue=t.detail,this.change.emit(i)}showCalendar(t){this.showPortal=!0;const i=this.textField.shadowRoot.querySelector("input");setTimeout((()=>{this.datePickerCalendar.inputElement=i})),t.stopPropagation(),document.addEventListener("mousedown",this.documentClickListener,{passive:!0}),document.addEventListener("keydown",this.documentClickListener,{passive:!0}),document.addEventListener("blur",this.preventBlurFromCalendarContainer,{capture:!0})}preventBlurFromCalendarContainer(t){t.relatedTarget===this.datePickerCalendar&&t.stopPropagation()}hideCalendar(){setTimeout((()=>{this.showPortal=!1})),document.removeEventListener("mousedown",this.documentClickListener),document.removeEventListener("keydown",this.documentClickListener),document.removeEventListener("blur",this.preventBlurFromCalendarContainer),this.pickerIsAutoClosing()||this.fixFlatpickrFocusBug()}fixFlatpickrFocusBug(){new r(this.textField.shadowRoot.querySelector(".mdc-text-field")).getDefaultFoundation().deactivateFocus()}handleCalendarChange(t){const i=t.detail;this.formattedValue=this.dateFormatter.formatDate(i,this.internalFormat),t.stopPropagation(),this.pickerIsAutoClosing()&&this.hideCalendar(),this.change.emit(i)}onInputClick(t){this.disabled||this.readonly||this.showPortal||this.showCalendar(t)}handleInputElementChange(t){""===t.detail&&this.clearValue(),t.stopPropagation()}pickerIsAutoClosing(){return"datetime"!==this.type&&"time"!==this.type}clearValue(){this.formattedValue="",this.change.emit(null)}get host(){return e(this)}static get watchers(){return{value:["onValueChange"]}}};c.style="div.container{position:relative}";export{c as limel_date_picker}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as c}from"./p-e9a95b8f.js";const o=class{constructor(c){r(this,c),this.size="mini",this.limeBranded=!0}render(){return[c("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},this.renderSpinner())]}renderSpinner(){return this.limeBranded?c("g",null,c("g",{"clip-path":"url(#mask)"},c("circle",{class:"outline thick",cx:"12",cy:"12",r:"12"}),c("g",{class:"spinner"},c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}),c("circle",{class:"color thick",cx:"12",cy:"12",r:"12"}))),c("clipPath",{id:"mask"},c("path",{d:"M2.166 11.248C2.166 5.04 7.058 0 13.083 0 19.108 0 24 5.04 24 11.248c0 3.229-1.307 6.548-4.533 9.306-3.908 3.343-9.15 3.8-17.254 3.249-2.405-.164-2.753-.588-1.51-1.533C4.61 19.3 2.165 17.025 2.165 11.248zm3.124 9.834c5.563.227 9.416-.246 12.397-2.76 2.432-2.05 3.482-4.56 3.51-7.074.05-4.613-3.636-8.36-8.114-8.36-4.478 0-8.114 3.746-8.114 8.36 0 2.793.607 4.737.726 6.345.092 1.252.03 2.388-.405 3.49z"}))):c("g",null,c("circle",{class:"outline",cx:"12",cy:"12",r:"10"}),c("g",{class:"spinner"},c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"}),c("circle",{class:"color",cx:"12",cy:"12",r:"10"})))}};o.style=":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}@keyframes spin{50%{transform:rotate(180deg)}100%{transform:rotate(720deg)}}@keyframes fade-in-the-spinner{0%{transform:scale(0.7);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes animate-colored-circles{5%{stroke-dashoffset:0}10%,100%{stroke-dashoffset:63}}:host([hidden]){display:none}:host{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem;transform:translate3d(0, 0, 0);animation:fade-in-the-spinner 0.5s ease forwards}:host([size=x-small]){height:2rem;width:2rem}:host([size=small]){height:2.125rem;width:2.125rem}:host([size=medium]){height:2.75rem;width:2.75rem}:host([size=large]){height:4rem;width:4rem}.spinner{animation:spin 1s linear infinite;transform-origin:center}.color{animation:animate-colored-circles 10s linear infinite;fill:none;stroke-dasharray:63;stroke-dashoffset:63;stroke-linecap:round;stroke-width:4}.color.thick{stroke-width:10}.color:nth-child(1){stroke:var(--spinner-color-1, rgb(var(--lime-brand-color-deep-red)))}.color:nth-child(2){stroke:var(--spinner-color-2, rgb(var(--lime-brand-color-sellable-orange)));animation-delay:1s}.color:nth-child(3){stroke:var(--spinner-color-3, rgb(var(--lime-brand-color-simple-blue)));animation-delay:2s}.color:nth-child(4){stroke:var(--spinner-color-4, rgb(var(--lime-brand-color-orange)));animation-delay:3s}.color:nth-child(5){stroke:var(--spinner-color-5, rgb(var(--lime-brand-color-lime-green)));animation-delay:4s}.color:nth-child(6){stroke:var(--spinner-color-6, rgb(var(--lime-brand-color-yellow)));animation-delay:5s}.color:nth-child(7){stroke:var(--spinner-color-7, rgb(var(--lime-brand-color-flexible-turquoise)));animation-delay:6s}.color:nth-child(8){stroke:var(--spinner-color-8, rgb(var(--lime-brand-color-loving-magenta)));animation-delay:7s}.color:nth-child(9){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-dark-blue)));animation-delay:8s}.color:nth-child(10){stroke:var(--spinner-color-9, rgb(var(--lime-brand-color-light-grey)));animation-delay:9s}.outline{stroke:rgba(var(--lime-brand-color-light-grey), 0.3);fill:none;stroke-linecap:round;stroke-width:4}.outline.thick{stroke-width:10}";export{o as limel_spinner}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as e}from"./p-e9a95b8f.js";import{c as r}from"./p-240fda3b.js";const s=new class{constructor(){this.cache={},this.resolveFunctions={}}async get(t,i=""){return this.cache[t]||(this.cache[t]=await this.getIcon(t,i)),this.cache[t]}getIcon(t,i){return new Promise((e=>{this.resolveFunctions[t]||(this.resolveFunctions[t]=[],this.fetchData(t,i)),this.resolveFunctions[t].push(e)}))}async fetchData(t,i){let e=i||"";i&&!i.endsWith("/")&&(e=`${i}/`);const r=await fetch(`${e}assets/icons/${t}.svg`);let s=await r.text();if(s=s.replace(/#000000/g,"currentColor"),!this.validSvg(s))throw new Error("Invalid SVG");this.resolvePromises(t,s)}validSvg(t){return"svg"===(new DOMParser).parseFromString(t,"image/svg+xml").documentElement.tagName.toLowerCase()}resolvePromises(t,i){this.resolveFunctions[t].forEach((t=>{t(i)})),this.resolveFunctions[t]=null}},o=class{constructor(i){t(this,i)}componentDidLoad(){this.loadIcon(this.name)}render(){return i("div",{class:"container"})}async loadIcon(t){if(void 0===t||""===t)return;const i=await this.loadSvg(t);this.renderSvg(i)}loadSvg(t){return s.get(t,r.iconPath)}renderSvg(t){const i=this.host.shadowRoot.querySelector("div.container");i&&(i.innerHTML=t)}get host(){return e(this)}static get watchers(){return{name:["loadIcon"]}}};o.style=":host{background-color:var(--icon-background-color, transparent);border-radius:50%;display:inline-block;line-height:0;box-sizing:border-box}:host svg{fill:currentColor;height:100%;pointer-events:none;width:100%}:host([hidden]){display:none}:host([size=x-small]){height:0.9375rem !important;width:0.9375rem !important}:host([size=small]){height:1.25rem !important;width:1.25rem !important}:host([size=medium]){height:1.5625rem !important;width:1.5625rem !important}:host([size=large]){height:1.875rem !important;width:1.875rem !important}:host([badge][size=x-small]){height:1.4375rem !important;width:1.4375rem !important}:host([badge][size=x-small])>div{margin:0.25rem}:host([badge][size=small]){height:1.875rem !important;width:1.875rem !important}:host([badge][size=small])>div{margin:0.3125rem}:host([badge][size=medium]){height:2.5rem !important;width:2.5rem !important}:host([badge][size=medium])>div{margin:0.5rem}:host([badge][size=large]){height:2.875rem !important;width:2.875rem !important}:host([badge][size=large])>div{margin:0.5rem}";export{o as limel_icon}
|
|
@@ -10,37 +10,36 @@
|
|
|
10
10
|
@use '../brand-colors';
|
|
11
11
|
@use '../_theme-color-variables';
|
|
12
12
|
|
|
13
|
-
@use '@material/theme' with
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
);
|
|
13
|
+
@use '@material/theme' with (
|
|
14
|
+
$primary: brand-colors.$lime-turquoise,
|
|
15
|
+
$secondary: brand-colors.$lime-dark-grey,
|
|
16
|
+
$background: #fff,
|
|
17
|
+
$surface: #fff,
|
|
18
|
+
$error: #b00020,
|
|
19
|
+
$on-primary: #fff,
|
|
20
|
+
$on-secondary: #fff,
|
|
21
|
+
$on-surface: #000,
|
|
22
|
+
$on-error: #fff,
|
|
23
|
+
// $text-disabled-on-background: rgba(0, 0, 0, 0.38),
|
|
24
|
+
// $text-hint-on-light: rgba(0, 0, 0, 0.38),
|
|
25
|
+
// $text-primary-on-background: rgba(0, 0, 0, 0.87),
|
|
26
|
+
// $text-secondary-on-background: rgba(0, 0, 0, 0.54),
|
|
27
|
+
//
|
|
28
|
+
// The following variables are also available to be set if needed
|
|
29
|
+
// (note by Ads: they probably aren't available in MDC v11)
|
|
30
|
+
//
|
|
31
|
+
// $text-hint-on-background: rgba(0, 0, 0, 0.38),
|
|
32
|
+
// $text-icon-on-background: rgba(0, 0, 0, 0.38),
|
|
33
|
+
// $text-primary-on-light: rgba(0, 0, 0, 0.87),
|
|
34
|
+
// $text-secondary-on-light: rgba(0, 0, 0, 0.54),
|
|
35
|
+
// $text-disabled-on-light: rgba(0, 0, 0, 0.38),
|
|
36
|
+
// $text-icon-on-light: rgba(0, 0, 0, 0.38),
|
|
37
|
+
// $text-primary-on-dark: white,
|
|
38
|
+
// $text-secondary-on-dark: rgba(255, 255, 255, 0.7),
|
|
39
|
+
// $text-hint-on-dark: rgba(255, 255, 255, 0.5),
|
|
40
|
+
// $text-disabled-on-dark: rgba(255, 255, 255, 0.5),
|
|
41
|
+
// $text-icon-on-dark: rgba(255, 255, 255, 0.5),
|
|
42
|
+
);
|
|
44
43
|
@forward '@material/theme';
|
|
45
44
|
|
|
46
45
|
@use './lime-typography';
|
|
@@ -9,60 +9,59 @@
|
|
|
9
9
|
|
|
10
10
|
@use '../functions';
|
|
11
11
|
|
|
12
|
-
@use '@material/typography' with
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
);
|
|
12
|
+
@use '@material/typography' with (
|
|
13
|
+
$styles-headline1: (
|
|
14
|
+
font-size: functions.pxToRem(22),
|
|
15
|
+
line-height: functions.pxToRem(22),
|
|
16
|
+
),
|
|
17
|
+
$styles-headline2: (
|
|
18
|
+
font-size: functions.pxToRem(16),
|
|
19
|
+
line-height: functions.pxToRem(14),
|
|
20
|
+
),
|
|
21
|
+
$styles-headline3: (
|
|
22
|
+
font-size: functions.pxToRem(16),
|
|
23
|
+
line-height: functions.pxToRem(14),
|
|
24
|
+
),
|
|
25
|
+
$styles-headline4: (
|
|
26
|
+
font-size: functions.pxToRem(16),
|
|
27
|
+
line-height: functions.pxToRem(14),
|
|
28
|
+
),
|
|
29
|
+
$styles-headline5: (
|
|
30
|
+
font-size: functions.pxToRem(14),
|
|
31
|
+
line-height: functions.pxToRem(14),
|
|
32
|
+
),
|
|
33
|
+
$styles-headline6: (
|
|
34
|
+
font-size: functions.pxToRem(14),
|
|
35
|
+
line-height: functions.pxToRem(14),
|
|
36
|
+
),
|
|
37
|
+
$styles-subtitle1: (
|
|
38
|
+
font-size: functions.pxToRem(14),
|
|
39
|
+
line-height: functions.pxToRem(18),
|
|
40
|
+
),
|
|
41
|
+
$styles-subtitle2: (
|
|
42
|
+
font-size: functions.pxToRem(13),
|
|
43
|
+
line-height: functions.pxToRem(18),
|
|
44
|
+
),
|
|
45
|
+
$styles-body1: (
|
|
46
|
+
font-size: functions.pxToRem(13),
|
|
47
|
+
line-height: functions.pxToRem(24),
|
|
48
|
+
),
|
|
49
|
+
$styles-body2: (
|
|
50
|
+
font-size: functions.pxToRem(13),
|
|
51
|
+
line-height: functions.pxToRem(26),
|
|
52
|
+
),
|
|
53
|
+
$styles-caption: (
|
|
54
|
+
font-size: functions.pxToRem(11),
|
|
55
|
+
line-height: functions.pxToRem(14),
|
|
56
|
+
),
|
|
57
|
+
$styles-button: (
|
|
58
|
+
font-size: functions.pxToRem(14),
|
|
59
|
+
line-height: functions.pxToRem(36),
|
|
60
|
+
text-transform: none,
|
|
61
|
+
),
|
|
62
|
+
$styles-overline: (
|
|
63
|
+
font-size: functions.pxToRem(11),
|
|
64
|
+
line-height: functions.pxToRem(14),
|
|
65
|
+
)
|
|
66
|
+
);
|
|
68
67
|
@forward '@material/typography';
|
|
@@ -9,8 +9,9 @@ export declare class Checkbox {
|
|
|
9
9
|
*/
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
/**
|
|
12
|
-
* Disables the checkbox when `true`.
|
|
13
|
-
*
|
|
12
|
+
* Disables the checkbox when `true`. This visualizes the checkbox slightly differently.
|
|
13
|
+
* But shows no visual sign indicating that the checkbox is disabled
|
|
14
|
+
* or can ever become interactable.
|
|
14
15
|
*/
|
|
15
16
|
readonly: boolean;
|
|
16
17
|
/**
|
|
@@ -9,6 +9,13 @@ import { DialogHeading } from '@limetech/lime-elements';
|
|
|
9
9
|
* See the example _Nested `close` events_.
|
|
10
10
|
* :::
|
|
11
11
|
*
|
|
12
|
+
* :::important
|
|
13
|
+
* Are you developing for
|
|
14
|
+
* [Lime CRM](https://www.lime-technologies.com/en/lime-crm/)? Please note that
|
|
15
|
+
* you should use the [DialogService](https://lundalogik.github.io/lime-web-components/versions/latest/#/api/dialog-service)
|
|
16
|
+
* from Lime Web Components to open dialogs in Lime CRM.
|
|
17
|
+
* :::
|
|
18
|
+
*
|
|
12
19
|
* @exampleComponent limel-example-dialog
|
|
13
20
|
* @exampleComponent limel-example-dialog-nested-close-events
|
|
14
21
|
* @exampleComponent limel-example-dialog-heading
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { FlexContainerAlign, FlexContainerDirection, FlexContainerJustify } from '@limetech/lime-elements';
|
|
2
2
|
/**
|
|
3
|
+
* This component is deprecated and will be removed in a future version of
|
|
4
|
+
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
5
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
|
|
6
|
+
*
|
|
7
|
+
* @deprecated
|
|
8
|
+
* @private
|
|
3
9
|
* @exampleComponent limel-example-flex-container
|
|
4
10
|
* @slot - Container content
|
|
5
11
|
*/
|
|
@@ -20,5 +26,6 @@ export declare class FlexContainer {
|
|
|
20
26
|
* Reverse the order of the items
|
|
21
27
|
*/
|
|
22
28
|
reverse: boolean;
|
|
29
|
+
componentWillLoad(): void;
|
|
23
30
|
render(): any;
|
|
24
31
|
}
|
|
@@ -3,8 +3,8 @@ import { FieldProps } from '@rjsf/core';
|
|
|
3
3
|
export declare class ObjectField extends React.Component<FieldProps, any> {
|
|
4
4
|
constructor(props: any);
|
|
5
5
|
private handleValidation;
|
|
6
|
-
render(): React.FunctionComponentElement<
|
|
6
|
+
render(): React.FunctionComponentElement<{
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
}
|
|
8
|
+
}> | React.FunctionComponentElement<Readonly<FieldProps<any>>>;
|
|
9
9
|
private renderErrors;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { FormError, ValidationStatus } from './form.types';
|
|
2
|
+
import { FormError, ValidationError, ValidationStatus } from './form.types';
|
|
3
3
|
/**
|
|
4
4
|
* @exampleComponent limel-example-form
|
|
5
5
|
* @exampleComponent limel-example-nested-form
|
|
@@ -10,6 +10,7 @@ import { FormError, ValidationStatus } from './form.types';
|
|
|
10
10
|
* @exampleComponent limel-example-form-layout
|
|
11
11
|
* @exampleComponent limel-example-form-span-fields
|
|
12
12
|
* @exampleComponent limel-example-custom-error-message
|
|
13
|
+
* @exampleComponent limel-example-server-errors
|
|
13
14
|
*/
|
|
14
15
|
export declare class Form {
|
|
15
16
|
/**
|
|
@@ -41,6 +42,11 @@ export declare class Form {
|
|
|
41
42
|
* Custom function to customize the default error messages
|
|
42
43
|
*/
|
|
43
44
|
transformErrors?: (errors: FormError[]) => FormError[];
|
|
45
|
+
/**
|
|
46
|
+
* Extra errors to display in the form. Typical use case is asynchronous
|
|
47
|
+
* errors generated server side.
|
|
48
|
+
*/
|
|
49
|
+
errors: ValidationError;
|
|
44
50
|
/**
|
|
45
51
|
* Emitted when a change is made within the form
|
|
46
52
|
*/
|
|
@@ -69,5 +75,6 @@ export declare class Form {
|
|
|
69
75
|
private setSchemaId;
|
|
70
76
|
private createValidator;
|
|
71
77
|
private getValidationErrors;
|
|
78
|
+
private getExtraErrors;
|
|
72
79
|
private getCustomErrorMessages;
|
|
73
80
|
}
|
|
@@ -29,6 +29,12 @@ export interface FormError {
|
|
|
29
29
|
*/
|
|
30
30
|
message: string;
|
|
31
31
|
}
|
|
32
|
+
export declare type ValidationError = {
|
|
33
|
+
/**
|
|
34
|
+
* Name of the field the error belongs to
|
|
35
|
+
*/
|
|
36
|
+
[key: string]: string[] | ValidationError;
|
|
37
|
+
};
|
|
32
38
|
export interface FormComponent<T = any> {
|
|
33
39
|
/**
|
|
34
40
|
* The value of the current property
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Action, ListItem, Searcher } from '@limetech/lime-elements';
|
|
2
2
|
import { ActionScrollBehavior, ActionPosition } from './actions.types';
|
|
3
3
|
/**
|
|
4
|
-
* @exampleComponent limel-example-picker
|
|
4
|
+
* @exampleComponent limel-example-picker-single
|
|
5
5
|
* @exampleComponent limel-example-picker-multiple
|
|
6
6
|
* @exampleComponent limel-example-picker-icons
|
|
7
7
|
* @exampleComponent limel-example-picker-empty-suggestions
|
|
8
8
|
* @exampleComponent limel-example-picker-leading-icon
|
|
9
9
|
* @exampleComponent limel-example-picker-static-actions
|
|
10
|
+
* @exampleComponent limel-example-picker-composite
|
|
10
11
|
*/
|
|
11
12
|
export declare class Picker {
|
|
12
13
|
/**
|
|
@@ -35,6 +35,6 @@ export declare class Switch {
|
|
|
35
35
|
private initialize;
|
|
36
36
|
disconnectedCallback(): void;
|
|
37
37
|
render(): any[];
|
|
38
|
-
protected valueWatcher(newValue:
|
|
39
|
-
private
|
|
38
|
+
protected valueWatcher(newValue: boolean): void;
|
|
39
|
+
private handleClick;
|
|
40
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Column, TableParams, ColumnSorter } from './table.types';
|
|
2
|
+
import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.types';
|
|
3
3
|
/**
|
|
4
4
|
* @exampleComponent limel-example-table
|
|
5
5
|
* @exampleComponent limel-example-table-custom-components
|
|
@@ -68,6 +68,10 @@ export declare class Table {
|
|
|
68
68
|
* A message to display when the table has no data
|
|
69
69
|
*/
|
|
70
70
|
emptyMessage: string;
|
|
71
|
+
/**
|
|
72
|
+
* Column aggregates to be displayed in the table
|
|
73
|
+
*/
|
|
74
|
+
aggregates: ColumnAggregate[];
|
|
71
75
|
/**
|
|
72
76
|
* Enables row selection
|
|
73
77
|
*/
|
|
@@ -115,15 +119,20 @@ export declare class Table {
|
|
|
115
119
|
protected activeRowChanged(): void;
|
|
116
120
|
protected updateData(newData?: any[], oldData?: any[]): void;
|
|
117
121
|
protected updateColumns(newColumns: Column[], oldColumns: Column[]): void;
|
|
122
|
+
protected updateAggregates(newAggregates: ColumnAggregate[], oldAggregates: ColumnAggregate[]): void;
|
|
118
123
|
protected updateSelection(newSelection: any[]): void;
|
|
124
|
+
protected updateSelectable(): void;
|
|
119
125
|
private areSameColumns;
|
|
126
|
+
private haveSameAggregateFields;
|
|
120
127
|
private init;
|
|
121
128
|
private initTabulatorComponent;
|
|
129
|
+
private initTableSelection;
|
|
122
130
|
private setSelection;
|
|
123
131
|
private updateMaxPage;
|
|
124
132
|
private getOptions;
|
|
125
133
|
private getColumnSorter;
|
|
126
134
|
private getColumnDefinitions;
|
|
135
|
+
private addColumnAggregator;
|
|
127
136
|
private getAjaxOptions;
|
|
128
137
|
private handleAjaxRequesting;
|
|
129
138
|
private getPaginationOptions;
|
|
@@ -130,3 +130,16 @@ export declare enum ColumnAggregatorType {
|
|
|
130
130
|
* @returns {*} the aggregated data
|
|
131
131
|
*/
|
|
132
132
|
export declare type ColumnAggregatorFunction<T = object> = (column?: Column, values?: any[], data?: T[]) => any;
|
|
133
|
+
/**
|
|
134
|
+
* Defines aggregate values for columns
|
|
135
|
+
*/
|
|
136
|
+
export interface ColumnAggregate {
|
|
137
|
+
/**
|
|
138
|
+
* The name of the `Column` field
|
|
139
|
+
*/
|
|
140
|
+
field: string;
|
|
141
|
+
/**
|
|
142
|
+
* The aggregate value
|
|
143
|
+
*/
|
|
144
|
+
value: any;
|
|
145
|
+
}
|
|
@@ -10,14 +10,14 @@ import { Action as Action1, Chip, DateType, DialogHeading, FileInfo, FlexContain
|
|
|
10
10
|
import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
|
|
11
11
|
import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
|
|
12
12
|
import { Action } from "./components/collapsible-section/action";
|
|
13
|
-
import { FormError, ValidationStatus } from "./components/form/form.types";
|
|
13
|
+
import { FormError, ValidationError, ValidationStatus } from "./components/form/form.types";
|
|
14
14
|
import { IconSize } from "./components/icon/icon.types";
|
|
15
15
|
import { InputType } from "./components/input-field/input-field.types";
|
|
16
16
|
import { ActionPosition, ActionScrollBehavior } from "./components/picker/actions.types";
|
|
17
17
|
import { OpenDirection as OpenDirection1 } from "./components/menu/menu.types";
|
|
18
18
|
import { FlowItem } from "./components/progress-flow/progress-flow.types";
|
|
19
19
|
import { Tab } from "./components/tab-bar/tab.types";
|
|
20
|
-
import { Column, ColumnSorter, TableParams } from "./components/table/table.types";
|
|
20
|
+
import { Column, ColumnAggregate, ColumnSorter, TableParams } from "./components/table/table.types";
|
|
21
21
|
export namespace Components {
|
|
22
22
|
interface LimelBadge {
|
|
23
23
|
/**
|
|
@@ -101,7 +101,7 @@ export namespace Components {
|
|
|
101
101
|
*/
|
|
102
102
|
"label": string;
|
|
103
103
|
/**
|
|
104
|
-
* Disables the checkbox when `true`.
|
|
104
|
+
* Disables the checkbox when `true`. This visualizes the checkbox slightly differently. But shows no visual sign indicating that the checkbox is disabled or can ever become interactable.
|
|
105
105
|
*/
|
|
106
106
|
"readonly": boolean;
|
|
107
107
|
/**
|
|
@@ -430,6 +430,10 @@ export namespace Components {
|
|
|
430
430
|
* Set to `true` to disable the whole form.
|
|
431
431
|
*/
|
|
432
432
|
"disabled": boolean;
|
|
433
|
+
/**
|
|
434
|
+
* Extra errors to display in the form. Typical use case is asynchronous errors generated server side.
|
|
435
|
+
*/
|
|
436
|
+
"errors": ValidationError;
|
|
433
437
|
/**
|
|
434
438
|
* Factory for creating properties for custom form components When using custom components in the form some properties might have to be set dynamically. If this factory is set, it will be called with the current schema for the field for each custom component in the form. The factory must return an object where each key is the name of the property that should be set, along with its value.
|
|
435
439
|
*/
|
|
@@ -965,6 +969,10 @@ export namespace Components {
|
|
|
965
969
|
* Active row in the table
|
|
966
970
|
*/
|
|
967
971
|
"activeRow": object;
|
|
972
|
+
/**
|
|
973
|
+
* Column aggregates to be displayed in the table
|
|
974
|
+
*/
|
|
975
|
+
"aggregates": ColumnAggregate[];
|
|
968
976
|
/**
|
|
969
977
|
* Columns used to display the data
|
|
970
978
|
*/
|
|
@@ -1442,7 +1450,7 @@ declare namespace LocalJSX {
|
|
|
1442
1450
|
*/
|
|
1443
1451
|
"onChange"?: (event: CustomEvent<boolean>) => void;
|
|
1444
1452
|
/**
|
|
1445
|
-
* Disables the checkbox when `true`.
|
|
1453
|
+
* Disables the checkbox when `true`. This visualizes the checkbox slightly differently. But shows no visual sign indicating that the checkbox is disabled or can ever become interactable.
|
|
1446
1454
|
*/
|
|
1447
1455
|
"readonly"?: boolean;
|
|
1448
1456
|
/**
|
|
@@ -1823,6 +1831,10 @@ declare namespace LocalJSX {
|
|
|
1823
1831
|
* Set to `true` to disable the whole form.
|
|
1824
1832
|
*/
|
|
1825
1833
|
"disabled"?: boolean;
|
|
1834
|
+
/**
|
|
1835
|
+
* Extra errors to display in the form. Typical use case is asynchronous errors generated server side.
|
|
1836
|
+
*/
|
|
1837
|
+
"errors"?: ValidationError;
|
|
1826
1838
|
/**
|
|
1827
1839
|
* Emitted when a change is made within the form
|
|
1828
1840
|
*/
|
|
@@ -2446,6 +2458,10 @@ declare namespace LocalJSX {
|
|
|
2446
2458
|
* Active row in the table
|
|
2447
2459
|
*/
|
|
2448
2460
|
"activeRow"?: object;
|
|
2461
|
+
/**
|
|
2462
|
+
* Column aggregates to be displayed in the table
|
|
2463
|
+
*/
|
|
2464
|
+
"aggregates"?: ColumnAggregate[];
|
|
2449
2465
|
/**
|
|
2450
2466
|
* Columns used to display the data
|
|
2451
2467
|
*/
|
|
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
|
|
|
666
666
|
use: JSXBase.SVGAttributes;
|
|
667
667
|
view: JSXBase.SVGAttributes;
|
|
668
668
|
}
|
|
669
|
-
interface SlotAttributes {
|
|
669
|
+
interface SlotAttributes extends JSXAttributes {
|
|
670
670
|
name?: string;
|
|
671
671
|
slot?: string;
|
|
672
672
|
onSlotchange?: (event: Event) => void;
|
|
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
|
|
|
1427
1427
|
z?: number | string;
|
|
1428
1428
|
zoomAndPan?: string;
|
|
1429
1429
|
}
|
|
1430
|
-
interface DOMAttributes<T
|
|
1431
|
-
key?: string | number;
|
|
1432
|
-
ref?: (elm?: T) => void;
|
|
1430
|
+
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1433
1431
|
slot?: string;
|
|
1434
1432
|
part?: string;
|
|
1435
1433
|
exportparts?: string;
|
|
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
|
|
|
1550
1548
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1551
1549
|
}
|
|
1552
1550
|
}
|
|
1551
|
+
export interface JSXAttributes<T = Element> {
|
|
1552
|
+
key?: string | number;
|
|
1553
|
+
ref?: (elm?: T) => void;
|
|
1554
|
+
}
|
|
1553
1555
|
export interface CustomElementsDefineOptions {
|
|
1554
1556
|
exclude?: string[];
|
|
1555
1557
|
resourcesUrl?: string;
|