@limetech/lime-crm-building-blocks 1.11.0 → 1.12.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/{index-56288277.js → index-9497280d.js} +105 -3
- package/dist/cjs/index.cjs.js +0 -7
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +6 -2
- package/dist/cjs/limebb-date-picker_2.cjs.entry.js +3 -7
- package/dist/cjs/limebb-example-date-picker-date.cjs.entry.js +3 -3
- package/dist/cjs/limebb-example-date-picker-datetime.cjs.entry.js +3 -3
- package/dist/cjs/limebb-example-date-picker-time.cjs.entry.js +3 -3
- package/dist/cjs/limebb-example-date-picker-week.cjs.entry.js +3 -3
- package/dist/cjs/limebb-example-date-range.cjs.entry.js +4 -1
- package/dist/cjs/limebb-example-locale-picker-multiple.cjs.entry.js +2 -2
- package/dist/cjs/limebb-example-locale-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-icon-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{platform-27260fcd.js → platform-3d3b774b.js} +8 -2
- package/dist/cjs/{platform-e0102f73.js → platform-b656fbcc.js} +1 -1
- package/dist/cjs/{types-172f53c1.js → types-5e2d281d.js} +49 -41
- package/dist/collection/components/currency-picker/currency-picker.js +23 -1
- package/dist/collection/components/date-picker/date-picker.js +2 -6
- package/dist/collection/components/date-picker/examples/platform.js +6 -0
- package/dist/collection/components/date-range/examples/date-range.js +2 -1
- package/dist/collection/components/icon-picker/icon-picker.js +21 -1
- package/dist/collection/index.js +0 -1
- package/dist/components/currency-picker.js +6 -1
- package/dist/components/date-picker.js +3 -19
- package/dist/components/icon-picker.js +2 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index2.js +105 -3
- package/dist/components/limebb-example-date-range.js +2 -1
- package/dist/components/platform.js +6 -0
- package/dist/components/types.js +49 -41
- package/dist/esm/{index-0d7a82e7.js → index-16157a5c.js} +105 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/limebb-currency-picker.entry.js +6 -2
- package/dist/esm/limebb-date-picker_2.entry.js +3 -7
- package/dist/esm/limebb-example-date-picker-date.entry.js +3 -3
- package/dist/esm/limebb-example-date-picker-datetime.entry.js +3 -3
- package/dist/esm/limebb-example-date-picker-time.entry.js +3 -3
- package/dist/esm/limebb-example-date-picker-week.entry.js +3 -3
- package/dist/esm/limebb-example-date-range.entry.js +4 -1
- package/dist/esm/limebb-example-locale-picker-multiple.entry.js +2 -2
- package/dist/esm/limebb-example-locale-picker.entry.js +2 -2
- package/dist/esm/limebb-icon-picker.entry.js +1 -1
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{platform-38637844.js → platform-343faa28.js} +8 -2
- package/dist/esm/{platform-d26b763d.js → platform-422c3a1b.js} +1 -1
- package/dist/esm/{types-51ecce09.js → types-acf07609.js} +49 -41
- package/dist/lime-crm-building-blocks/index.esm.js +0 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/p-16d06fc2.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-188926f9.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-332a1e41.js → p-2215eae9.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-15e3fb8b.entry.js → p-3ade03e6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-13cfc8f8.entry.js → p-40f2f04a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-4400e6ed.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-7c32edeb.entry.js → p-697ae371.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-bd5efb45.entry.js → p-8e5b4934.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f7d3f308.entry.js → p-afc87ae3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-974a8cb4.entry.js → p-b4fca018.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-bc052012.js +1 -0
- package/dist/lime-crm-building-blocks/{p-f7f97c63.entry.js → p-c4225a10.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b36350a8.js → p-d490ab9e.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1e1f73b8.entry.js → p-ed2d6f5f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4eedc543.js → p-f4fd0cf1.js} +1 -1
- package/dist/types/components/currency-picker/currency-picker.d.ts +4 -0
- package/dist/types/components/icon-picker/icon-picker.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/cjs/from-server-date-0f5deea0.js +0 -16
- package/dist/collection/components/date-picker/from-server-date.js +0 -12
- package/dist/esm/from-server-date-f49053b8.js +0 -14
- package/dist/lime-crm-building-blocks/p-00b0a438.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-03d64f35.js +0 -1
- package/dist/lime-crm-building-blocks/p-1c0609a8.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-982eb42a.js +0 -1
- package/dist/lime-crm-building-blocks/p-d0a45620.entry.js +0 -1
- package/dist/types/components/date-picker/from-server-date.d.ts +0 -3
|
@@ -6464,7 +6464,7 @@ const target = {
|
|
|
6464
6464
|
},
|
|
6465
6465
|
};
|
|
6466
6466
|
|
|
6467
|
-
const todo = {
|
|
6467
|
+
const todo$1 = {
|
|
6468
6468
|
name: 'todo',
|
|
6469
6469
|
localname: {
|
|
6470
6470
|
singular: 'To-do',
|
|
@@ -7238,7 +7238,7 @@ const limetypes = {
|
|
|
7238
7238
|
infotiles: infotiles,
|
|
7239
7239
|
participant: participant,
|
|
7240
7240
|
campaign: campaign,
|
|
7241
|
-
todo: todo,
|
|
7241
|
+
todo: todo$1,
|
|
7242
7242
|
deal: deal$1,
|
|
7243
7243
|
helpdesk: helpdesk,
|
|
7244
7244
|
office: office,
|
|
@@ -9706,6 +9706,108 @@ const document = [
|
|
|
9706
9706
|
return limeobject;
|
|
9707
9707
|
});
|
|
9708
9708
|
|
|
9709
|
+
const todo = [
|
|
9710
|
+
{
|
|
9711
|
+
business: null,
|
|
9712
|
+
business2: null,
|
|
9713
|
+
campaign: null,
|
|
9714
|
+
company: 1003,
|
|
9715
|
+
coworker: 1002,
|
|
9716
|
+
createdtime: '2012-03-08T15:36:46.430000+01:00',
|
|
9717
|
+
createduser: 1,
|
|
9718
|
+
descriptive: 'MH prospect',
|
|
9719
|
+
done: false,
|
|
9720
|
+
endtime: null,
|
|
9721
|
+
helpdesk: null,
|
|
9722
|
+
id: 1018,
|
|
9723
|
+
machine: null,
|
|
9724
|
+
note: null,
|
|
9725
|
+
person: null,
|
|
9726
|
+
project: null,
|
|
9727
|
+
starttime: '2018-10-10T00:00:00+02:00',
|
|
9728
|
+
subject: 'MH prospect',
|
|
9729
|
+
timestamp: '2023-09-14T16:48:53.407000+02:00',
|
|
9730
|
+
todostatus: '202801',
|
|
9731
|
+
updateduser: 1,
|
|
9732
|
+
weekday2: 'wed',
|
|
9733
|
+
},
|
|
9734
|
+
{
|
|
9735
|
+
business: null,
|
|
9736
|
+
business2: null,
|
|
9737
|
+
campaign: null,
|
|
9738
|
+
company: 1001,
|
|
9739
|
+
coworker: 1001,
|
|
9740
|
+
createdtime: '2014-03-08T15:36:46.430000+01:00',
|
|
9741
|
+
createduser: 1,
|
|
9742
|
+
descriptive: 'testing todos',
|
|
9743
|
+
done: false,
|
|
9744
|
+
endtime: null,
|
|
9745
|
+
helpdesk: null,
|
|
9746
|
+
id: 1019,
|
|
9747
|
+
machine: null,
|
|
9748
|
+
note: null,
|
|
9749
|
+
person: null,
|
|
9750
|
+
project: null,
|
|
9751
|
+
starttime: '2018-10-10T00:00:00+02:00',
|
|
9752
|
+
subject: 'testing todos',
|
|
9753
|
+
timestamp: '2023-09-14T16:48:53.407000+02:00',
|
|
9754
|
+
todostatus: '202801',
|
|
9755
|
+
updateduser: 1,
|
|
9756
|
+
weekday2: 'mon',
|
|
9757
|
+
},
|
|
9758
|
+
{
|
|
9759
|
+
business: null,
|
|
9760
|
+
business2: null,
|
|
9761
|
+
campaign: null,
|
|
9762
|
+
company: 1007,
|
|
9763
|
+
coworker: 1001,
|
|
9764
|
+
createdtime: '2016-03-08T15:36:46.430000+01:00',
|
|
9765
|
+
createduser: 1,
|
|
9766
|
+
descriptive: 'for AB Culinar (DEMO)',
|
|
9767
|
+
done: false,
|
|
9768
|
+
endtime: null,
|
|
9769
|
+
helpdesk: null,
|
|
9770
|
+
id: 1020,
|
|
9771
|
+
machine: null,
|
|
9772
|
+
note: 'AB Culinar (DEMO) todo',
|
|
9773
|
+
person: null,
|
|
9774
|
+
project: null,
|
|
9775
|
+
starttime: '2018-10-10T00:00:00+02:00',
|
|
9776
|
+
subject: 'AB Culinar (DEMO) todo',
|
|
9777
|
+
timestamp: '2023-09-14T16:48:53.407000+02:00',
|
|
9778
|
+
todostatus: '202801',
|
|
9779
|
+
updateduser: 1,
|
|
9780
|
+
weekday2: 'wed',
|
|
9781
|
+
},
|
|
9782
|
+
{
|
|
9783
|
+
business: null,
|
|
9784
|
+
business2: null,
|
|
9785
|
+
campaign: null,
|
|
9786
|
+
company: 1022,
|
|
9787
|
+
coworker: 1054,
|
|
9788
|
+
createdtime: '2016-03-08T15:36:46.430000+01:00',
|
|
9789
|
+
createduser: 1,
|
|
9790
|
+
descriptive: 'PH Glas (DEMO)',
|
|
9791
|
+
done: false,
|
|
9792
|
+
endtime: null,
|
|
9793
|
+
helpdesk: null,
|
|
9794
|
+
id: 1020,
|
|
9795
|
+
machine: null,
|
|
9796
|
+
note: 'PH Glas (DEMO) todo',
|
|
9797
|
+
person: null,
|
|
9798
|
+
project: null,
|
|
9799
|
+
starttime: '2018-10-10T00:00:00+02:00',
|
|
9800
|
+
subject: 'PH Glas (DEMO) todo',
|
|
9801
|
+
timestamp: '2023-09-14T16:48:53.407000+02:00',
|
|
9802
|
+
todostatus: '202801',
|
|
9803
|
+
updateduser: 1,
|
|
9804
|
+
weekday2: 'tue',
|
|
9805
|
+
},
|
|
9806
|
+
].map((data) => {
|
|
9807
|
+
const limeobject = Object.assign(Object.assign({}, data), { getLimetype: () => getLimetype('todo'), getValue: (property) => getValue(property, limeobject) });
|
|
9808
|
+
return limeobject;
|
|
9809
|
+
});
|
|
9810
|
+
|
|
9709
9811
|
const limeobjects = {
|
|
9710
9812
|
company: company,
|
|
9711
9813
|
coworker: coworker,
|
|
@@ -9722,7 +9824,7 @@ const limeobjects = {
|
|
|
9722
9824
|
infotiles: [],
|
|
9723
9825
|
participant: [],
|
|
9724
9826
|
campaign: [],
|
|
9725
|
-
todo:
|
|
9827
|
+
todo: todo,
|
|
9726
9828
|
helpdesk: [],
|
|
9727
9829
|
office: [],
|
|
9728
9830
|
target: [],
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["limebb-example-date-picker-date.cjs",[[1,"limebb-example-date-picker-date",{"value":[32]}]]],["limebb-example-date-picker-datetime.cjs",[[1,"limebb-example-date-picker-datetime",{"value":[32]}]]],["limebb-example-date-picker-time.cjs",[[1,"limebb-example-date-picker-time",{"value":[32]}]]],["limebb-example-date-picker-week.cjs",[[1,"limebb-example-date-picker-week",{"value":[32]}]]],["limebb-example-date-range.cjs",[[1,"limebb-example-date-range"]]],["limebb-example-currency-picker.cjs",[[1,"limebb-example-currency-picker",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-european.cjs",[[1,"limebb-example-currency-picker-european",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-nordic.cjs",[[1,"limebb-example-currency-picker-nordic",{"selectedCurrency":[32]}]]],["limebb-example-dashboard-widget.cjs",[[1,"limebb-example-dashboard-widget"]]],["limebb-example-dashboard-widget-slots.cjs",[[1,"limebb-example-dashboard-widget-slots",{"filterMyDeals":[32]}]]],["limebb-example-dashboard-widget-styles.cjs",[[1,"limebb-example-dashboard-widget-styles"]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-example-icon-picker.cjs",[[1,"limebb-example-icon-picker",{"value":[32]}]]],["limebb-example-locale-picker.cjs",[[1,"limebb-example-locale-picker",{"value":[1]}]]],["limebb-example-locale-picker-multiple.cjs",[[1,"limebb-example-locale-picker-multiple",{"value":[1]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-example-navigation-button-back.cjs",[[1,"limebb-example-navigation-button-back"]]],["limebb-example-navigation-button-close.cjs",[[1,"limebb-example-navigation-button-close"]]],["limebb-example-navigation-button-expand.cjs",[[1,"limebb-example-navigation-button-expand"]]],["limebb-example-navigation-button-float.cjs",[[1,"limebb-example-navigation-button-float"]]],["limebb-example-navigation-button-maximize.cjs",[[1,"limebb-example-navigation-button-maximize"]]],["limebb-example-navigation-button-minimize.cjs",[[1,"limebb-example-navigation-button-minimize"]]],["limebb-example-navigation-button-new-tab.cjs",[[1,"limebb-example-navigation-button-new-tab"]]],["limebb-example-navigation-button-shrink.cjs",[[1,"limebb-example-navigation-button-shrink"]]],["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-date-picker_2.cjs",[[0,"limebb-example-value",{"label":[513],"value":[8]}],[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["limebb-example-date-picker-date.cjs",[[1,"limebb-example-date-picker-date",{"value":[32]}]]],["limebb-example-date-picker-datetime.cjs",[[1,"limebb-example-date-picker-datetime",{"value":[32]}]]],["limebb-example-date-picker-time.cjs",[[1,"limebb-example-date-picker-time",{"value":[32]}]]],["limebb-example-date-picker-week.cjs",[[1,"limebb-example-date-picker-week",{"value":[32]}]]],["limebb-example-date-range.cjs",[[1,"limebb-example-date-range"]]],["limebb-example-currency-picker.cjs",[[1,"limebb-example-currency-picker",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-european.cjs",[[1,"limebb-example-currency-picker-european",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-nordic.cjs",[[1,"limebb-example-currency-picker-nordic",{"selectedCurrency":[32]}]]],["limebb-example-dashboard-widget.cjs",[[1,"limebb-example-dashboard-widget"]]],["limebb-example-dashboard-widget-slots.cjs",[[1,"limebb-example-dashboard-widget-slots",{"filterMyDeals":[32]}]]],["limebb-example-dashboard-widget-styles.cjs",[[1,"limebb-example-dashboard-widget-styles"]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-example-icon-picker.cjs",[[1,"limebb-example-icon-picker",{"value":[32]}]]],["limebb-example-locale-picker.cjs",[[1,"limebb-example-locale-picker",{"value":[1]}]]],["limebb-example-locale-picker-multiple.cjs",[[1,"limebb-example-locale-picker-multiple",{"value":[1]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-example-navigation-button-back.cjs",[[1,"limebb-example-navigation-button-back"]]],["limebb-example-navigation-button-close.cjs",[[1,"limebb-example-navigation-button-close"]]],["limebb-example-navigation-button-expand.cjs",[[1,"limebb-example-navigation-button-expand"]]],["limebb-example-navigation-button-float.cjs",[[1,"limebb-example-navigation-button-float"]]],["limebb-example-navigation-button-maximize.cjs",[[1,"limebb-example-navigation-button-maximize"]]],["limebb-example-navigation-button-minimize.cjs",[[1,"limebb-example-navigation-button-minimize"]]],["limebb-example-navigation-button-new-tab.cjs",[[1,"limebb-example-navigation-button-new-tab"]]],["limebb-example-navigation-button-shrink.cjs",[[1,"limebb-example-navigation-button-shrink"]]],["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-date-picker_2.cjs",[[0,"limebb-example-value",{"label":[513],"value":[8]}],[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]]], options);
|
|
19
19
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-5e2d281d.js');
|
|
7
7
|
const currencies = require('./currencies-98ac425a.js');
|
|
8
8
|
|
|
9
9
|
const CurrencyPicker = class {
|
|
@@ -23,6 +23,10 @@ const CurrencyPicker = class {
|
|
|
23
23
|
* Whether the current property is readonly
|
|
24
24
|
*/
|
|
25
25
|
this.readonly = false;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the current property is invalid
|
|
28
|
+
*/
|
|
29
|
+
this.invalid = false;
|
|
26
30
|
/**
|
|
27
31
|
* Whether the current property is disabled
|
|
28
32
|
*/
|
|
@@ -46,7 +50,7 @@ const CurrencyPicker = class {
|
|
|
46
50
|
};
|
|
47
51
|
}
|
|
48
52
|
render() {
|
|
49
|
-
return (index.h("limel-picker", { label: this.label || this.defaultLabel, value: this.value, helperText: this.helperText, onChange: this.handleChange, badgeIcons: false, disabled: this.disabled, required: this.required, readonly: this.readonly, searcher: this.search }));
|
|
53
|
+
return (index.h("limel-picker", { label: this.label || this.defaultLabel, value: this.value, helperText: this.helperText, onChange: this.handleChange, badgeIcons: false, disabled: this.disabled, required: this.required, readonly: this.readonly, invalid: this.readonly, searcher: this.search }));
|
|
50
54
|
}
|
|
51
55
|
get translator() {
|
|
52
56
|
var _a;
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const types = require('./types-
|
|
7
|
-
const fromServerDate = require('./from-server-date-0f5deea0.js');
|
|
6
|
+
const types = require('./types-5e2d281d.js');
|
|
8
7
|
const _nodeUtil = require('./_nodeUtil-d0211145.js');
|
|
9
8
|
|
|
10
9
|
/** `Object#toString` result references. */
|
|
@@ -136,14 +135,11 @@ const DatePicker = class {
|
|
|
136
135
|
return (index.h("limel-date-picker", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, placeholder: this.placeholder, helperText: this.helperText, required: this.required, value: this.parseDateValue(), type: this.type, formatter: this.formatter, onChange: this.handleChange }));
|
|
137
136
|
}
|
|
138
137
|
parseDateValue() {
|
|
139
|
-
|
|
138
|
+
const value = this.value;
|
|
140
139
|
if (!value) {
|
|
141
140
|
return;
|
|
142
141
|
}
|
|
143
|
-
|
|
144
|
-
value = new Date(value);
|
|
145
|
-
}
|
|
146
|
-
return fromServerDate.fromServerDate(value, this.type);
|
|
142
|
+
return this.dateTimeFormatter.parse(value, dateTimePropertyTypes[this.type] || this.type);
|
|
147
143
|
}
|
|
148
144
|
get dateTimeFormatter() {
|
|
149
145
|
return this.platform.get(types.PlatformServiceName.DateTimeFormatter);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./types-
|
|
8
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-3d3b774b.js');
|
|
7
|
+
require('./types-5e2d281d.js');
|
|
8
|
+
require('./index-9497280d.js');
|
|
9
9
|
|
|
10
10
|
const DatePickerExampleDate = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./types-
|
|
8
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-3d3b774b.js');
|
|
7
|
+
require('./types-5e2d281d.js');
|
|
8
|
+
require('./index-9497280d.js');
|
|
9
9
|
|
|
10
10
|
const DatePickerExampleDateTime = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./types-
|
|
8
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-3d3b774b.js');
|
|
7
|
+
require('./types-5e2d281d.js');
|
|
8
|
+
require('./index-9497280d.js');
|
|
9
9
|
|
|
10
10
|
const DatePickerExampleTime = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./types-
|
|
8
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-3d3b774b.js');
|
|
7
|
+
require('./types-5e2d281d.js');
|
|
8
|
+
require('./index-9497280d.js');
|
|
9
9
|
|
|
10
10
|
const DatePickerExampleWeek = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
+
const platform = require('./platform-3d3b774b.js');
|
|
7
|
+
require('./types-5e2d281d.js');
|
|
8
|
+
require('./index-9497280d.js');
|
|
6
9
|
|
|
7
10
|
const dateRangeCss = ":host(limebb-example-date-range){display:flex;flex-direction:column;background-color:rgb(var(--contrast-500));border-radius:0.5rem;padding:0.5rem}span{padding-left:0.5rem;font-size:1.25rem}limebb-date-range{margin-top:0.75rem;border-radius:0.75rem;background-color:rgb(var(--contrast-100))}limebb-date-range:before{content:\"\";position:absolute;top:-0.5rem;left:2rem;background-color:inherit;width:1rem;height:1rem;rotate:45deg;border-radius:0.25rem 0 0 0}";
|
|
8
11
|
|
|
@@ -15,7 +18,7 @@ const DateRangeExample = class {
|
|
|
15
18
|
render() {
|
|
16
19
|
return [
|
|
17
20
|
index.h("span", null, "My event"),
|
|
18
|
-
index.h("limebb-date-range", { startTime: this.startTime, endTime: this.endTime, startTimeLabel: "Start time", endTimeLabel: "End time", type: "datetime" }),
|
|
21
|
+
index.h("limebb-date-range", { platform: platform.platform, startTime: this.startTime, endTime: this.endTime, startTimeLabel: "Start time", endTimeLabel: "End time", type: "datetime" }),
|
|
19
22
|
];
|
|
20
23
|
}
|
|
21
24
|
};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-b656fbcc.js');
|
|
7
|
+
require('./index-9497280d.js');
|
|
8
8
|
|
|
9
9
|
const LocalePickerExample = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const platform = require('./platform-
|
|
7
|
-
require('./index-
|
|
6
|
+
const platform = require('./platform-b656fbcc.js');
|
|
7
|
+
require('./index-9497280d.js');
|
|
8
8
|
|
|
9
9
|
const LocalePickerExample = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -24581,7 +24581,7 @@ const IconPicker = class {
|
|
|
24581
24581
|
icon: this.value,
|
|
24582
24582
|
};
|
|
24583
24583
|
}
|
|
24584
|
-
return (index.h("limel-picker", { label: this.label, helperText: this.helperText, disabled: this.disabled, readonly: this.readonly, required: this.required, value: value, searcher: this.search, onChange: this.handleChange, badgeIcons: false, leadingIcon: "search" }));
|
|
24584
|
+
return (index.h("limel-picker", { label: this.label, helperText: this.helperText, disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, required: this.required, value: value, searcher: this.search, onChange: this.handleChange, badgeIcons: false, leadingIcon: "search" }));
|
|
24585
24585
|
}
|
|
24586
24586
|
};
|
|
24587
24587
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c40f4fe5.js');
|
|
6
|
-
const types = require('./types-
|
|
6
|
+
const types = require('./types-5e2d281d.js');
|
|
7
7
|
const _nodeUtil = require('./_nodeUtil-d0211145.js');
|
|
8
8
|
|
|
9
9
|
/** `Object#toString` result references. */
|
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([["limebb-example-date-picker-date.cjs",[[1,"limebb-example-date-picker-date",{"value":[32]}]]],["limebb-example-date-picker-datetime.cjs",[[1,"limebb-example-date-picker-datetime",{"value":[32]}]]],["limebb-example-date-picker-time.cjs",[[1,"limebb-example-date-picker-time",{"value":[32]}]]],["limebb-example-date-picker-week.cjs",[[1,"limebb-example-date-picker-week",{"value":[32]}]]],["limebb-example-date-range.cjs",[[1,"limebb-example-date-range"]]],["limebb-example-currency-picker.cjs",[[1,"limebb-example-currency-picker",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-european.cjs",[[1,"limebb-example-currency-picker-european",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-nordic.cjs",[[1,"limebb-example-currency-picker-nordic",{"selectedCurrency":[32]}]]],["limebb-example-dashboard-widget.cjs",[[1,"limebb-example-dashboard-widget"]]],["limebb-example-dashboard-widget-slots.cjs",[[1,"limebb-example-dashboard-widget-slots",{"filterMyDeals":[32]}]]],["limebb-example-dashboard-widget-styles.cjs",[[1,"limebb-example-dashboard-widget-styles"]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-example-icon-picker.cjs",[[1,"limebb-example-icon-picker",{"value":[32]}]]],["limebb-example-locale-picker.cjs",[[1,"limebb-example-locale-picker",{"value":[1]}]]],["limebb-example-locale-picker-multiple.cjs",[[1,"limebb-example-locale-picker-multiple",{"value":[1]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-example-navigation-button-back.cjs",[[1,"limebb-example-navigation-button-back"]]],["limebb-example-navigation-button-close.cjs",[[1,"limebb-example-navigation-button-close"]]],["limebb-example-navigation-button-expand.cjs",[[1,"limebb-example-navigation-button-expand"]]],["limebb-example-navigation-button-float.cjs",[[1,"limebb-example-navigation-button-float"]]],["limebb-example-navigation-button-maximize.cjs",[[1,"limebb-example-navigation-button-maximize"]]],["limebb-example-navigation-button-minimize.cjs",[[1,"limebb-example-navigation-button-minimize"]]],["limebb-example-navigation-button-new-tab.cjs",[[1,"limebb-example-navigation-button-new-tab"]]],["limebb-example-navigation-button-shrink.cjs",[[1,"limebb-example-navigation-button-shrink"]]],["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-date-picker_2.cjs",[[0,"limebb-example-value",{"label":[513],"value":[8]}],[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["limebb-example-date-picker-date.cjs",[[1,"limebb-example-date-picker-date",{"value":[32]}]]],["limebb-example-date-picker-datetime.cjs",[[1,"limebb-example-date-picker-datetime",{"value":[32]}]]],["limebb-example-date-picker-time.cjs",[[1,"limebb-example-date-picker-time",{"value":[32]}]]],["limebb-example-date-picker-week.cjs",[[1,"limebb-example-date-picker-week",{"value":[32]}]]],["limebb-example-date-range.cjs",[[1,"limebb-example-date-range"]]],["limebb-example-currency-picker.cjs",[[1,"limebb-example-currency-picker",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-european.cjs",[[1,"limebb-example-currency-picker-european",{"selectedCurrency":[32]}]]],["limebb-example-currency-picker-nordic.cjs",[[1,"limebb-example-currency-picker-nordic",{"selectedCurrency":[32]}]]],["limebb-example-dashboard-widget.cjs",[[1,"limebb-example-dashboard-widget"]]],["limebb-example-dashboard-widget-slots.cjs",[[1,"limebb-example-dashboard-widget-slots",{"filterMyDeals":[32]}]]],["limebb-example-dashboard-widget-styles.cjs",[[1,"limebb-example-dashboard-widget-styles"]]],["limebb-icon-picker.cjs",[[1,"limebb-icon-picker",{"value":[1],"required":[4],"readonly":[4],"invalid":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"]}]]],["limebb-example-icon-picker.cjs",[[1,"limebb-example-icon-picker",{"value":[32]}]]],["limebb-example-locale-picker.cjs",[[1,"limebb-example-locale-picker",{"value":[1]}]]],["limebb-example-locale-picker-multiple.cjs",[[1,"limebb-example-locale-picker-multiple",{"value":[1]}]]],["limebb-navigation-button.cjs",[[1,"limebb-navigation-button",{"href":[513],"tooltipLabel":[513,"tooltip-label"],"tooltipHelperLabel":[513,"tooltip-helper-label"],"type":[513]}]]],["limebb-example-navigation-button-back.cjs",[[1,"limebb-example-navigation-button-back"]]],["limebb-example-navigation-button-close.cjs",[[1,"limebb-example-navigation-button-close"]]],["limebb-example-navigation-button-expand.cjs",[[1,"limebb-example-navigation-button-expand"]]],["limebb-example-navigation-button-float.cjs",[[1,"limebb-example-navigation-button-float"]]],["limebb-example-navigation-button-maximize.cjs",[[1,"limebb-example-navigation-button-maximize"]]],["limebb-example-navigation-button-minimize.cjs",[[1,"limebb-example-navigation-button-minimize"]]],["limebb-example-navigation-button-new-tab.cjs",[[1,"limebb-example-navigation-button-new-tab"]]],["limebb-example-navigation-button-shrink.cjs",[[1,"limebb-example-navigation-button-shrink"]]],["limebb-date-range.cjs",[[1,"limebb-date-range",{"platform":[16],"context":[16],"startTime":[16],"endTime":[16],"startTimeLabel":[1,"start-time-label"],"endTimeLabel":[1,"end-time-label"],"language":[1],"timeFormat":[1,"time-format"],"type":[1]}]]],["limebb-locale-picker.cjs",[[1,"limebb-locale-picker",{"platform":[16],"context":[16],"value":[1],"required":[4],"disabled":[4],"label":[1],"helperText":[1,"helper-text"],"readonly":[4],"multipleChoice":[4,"multiple-choice"],"allLanguages":[32]}]]],["limebb-currency-picker.cjs",[[1,"limebb-currency-picker",{"label":[513],"platform":[16],"currencies":[16],"helperText":[513,"helper-text"],"required":[516],"readonly":[516],"invalid":[516],"disabled":[516],"value":[8]}]]],["limebb-dashboard-widget.cjs",[[1,"limebb-dashboard-widget",{"heading":[513],"subheading":[513],"supportingText":[513,"supporting-text"],"icon":[513]}]]],["limebb-date-picker_2.cjs",[[0,"limebb-example-value",{"label":[513],"value":[8]}],[1,"limebb-date-picker",{"platform":[16],"context":[16],"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[1],"type":[513]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const types = require('./types-
|
|
4
|
-
const index = require('./index-
|
|
3
|
+
const types = require('./types-5e2d281d.js');
|
|
4
|
+
const index = require('./index-9497280d.js');
|
|
5
5
|
|
|
6
6
|
function _typeof(obj) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
@@ -2265,6 +2265,12 @@ class ExampleFormatter {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
return Intl.DateTimeFormat(locale$1, formattingOptions[type]).format(date);
|
|
2267
2267
|
}
|
|
2268
|
+
parse(date) {
|
|
2269
|
+
if (typeof date === 'string') {
|
|
2270
|
+
return new Date(date);
|
|
2271
|
+
}
|
|
2272
|
+
return date;
|
|
2273
|
+
}
|
|
2268
2274
|
}
|
|
2269
2275
|
platform.register(types.PlatformServiceName.DateTimeFormatter, new ExampleFormatter());
|
|
2270
2276
|
|
|
@@ -9,11 +9,11 @@ const PlatformServiceName = {
|
|
|
9
9
|
Route: 'route',
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const SERVICE_NAME$
|
|
13
|
-
PlatformServiceName.LimeTypeRepository = SERVICE_NAME$
|
|
12
|
+
const SERVICE_NAME$k = 'state.limetypes';
|
|
13
|
+
PlatformServiceName.LimeTypeRepository = SERVICE_NAME$k;
|
|
14
14
|
|
|
15
|
-
const SERVICE_NAME$
|
|
16
|
-
PlatformServiceName.LimeObjectRepository = SERVICE_NAME$
|
|
15
|
+
const SERVICE_NAME$j = 'state.limeobjects';
|
|
16
|
+
PlatformServiceName.LimeObjectRepository = SERVICE_NAME$j;
|
|
17
17
|
|
|
18
18
|
/******************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
@@ -35,7 +35,12 @@ function __decorate(decorators, target, key, desc) {
|
|
|
35
35
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
36
36
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
37
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
41
|
+
var e = new Error(message);
|
|
42
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
43
|
+
};
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* Events dispatched by the commandbus event middleware
|
|
@@ -133,8 +138,8 @@ function getCommandIds(value) {
|
|
|
133
138
|
return Array.from(new Set(ids));
|
|
134
139
|
}
|
|
135
140
|
|
|
136
|
-
const SERVICE_NAME$
|
|
137
|
-
PlatformServiceName.CommandBus = SERVICE_NAME$
|
|
141
|
+
const SERVICE_NAME$i = 'commandBus';
|
|
142
|
+
PlatformServiceName.CommandBus = SERVICE_NAME$i;
|
|
138
143
|
|
|
139
144
|
/**
|
|
140
145
|
* Open a dialog for bulk creating limeobjects
|
|
@@ -285,26 +290,26 @@ var Operator;
|
|
|
285
290
|
Operator["ENDS"] = "=$";
|
|
286
291
|
})(Operator || (Operator = {}));
|
|
287
292
|
|
|
288
|
-
const SERVICE_NAME$
|
|
289
|
-
PlatformServiceName.Query = SERVICE_NAME$
|
|
293
|
+
const SERVICE_NAME$h = 'query';
|
|
294
|
+
PlatformServiceName.Query = SERVICE_NAME$h;
|
|
290
295
|
|
|
291
|
-
const SERVICE_NAME$
|
|
292
|
-
PlatformServiceName.Http = SERVICE_NAME$
|
|
296
|
+
const SERVICE_NAME$g = 'http';
|
|
297
|
+
PlatformServiceName.Http = SERVICE_NAME$g;
|
|
293
298
|
|
|
294
|
-
const SERVICE_NAME$
|
|
295
|
-
PlatformServiceName.EventDispatcher = SERVICE_NAME$
|
|
299
|
+
const SERVICE_NAME$f = 'eventDispatcher';
|
|
300
|
+
PlatformServiceName.EventDispatcher = SERVICE_NAME$f;
|
|
296
301
|
|
|
297
|
-
const SERVICE_NAME$
|
|
298
|
-
PlatformServiceName.Translate = SERVICE_NAME$
|
|
302
|
+
const SERVICE_NAME$e = 'translate';
|
|
303
|
+
PlatformServiceName.Translate = SERVICE_NAME$e;
|
|
299
304
|
|
|
300
|
-
const SERVICE_NAME$
|
|
301
|
-
PlatformServiceName.Dialog = SERVICE_NAME$
|
|
305
|
+
const SERVICE_NAME$d = 'dialog';
|
|
306
|
+
PlatformServiceName.Dialog = SERVICE_NAME$d;
|
|
302
307
|
|
|
303
|
-
const SERVICE_NAME$
|
|
304
|
-
PlatformServiceName.KeybindingRegistry = SERVICE_NAME$
|
|
308
|
+
const SERVICE_NAME$c = 'keybindingRegistry';
|
|
309
|
+
PlatformServiceName.KeybindingRegistry = SERVICE_NAME$c;
|
|
305
310
|
|
|
306
|
-
const SERVICE_NAME$
|
|
307
|
-
PlatformServiceName.Navigator = SERVICE_NAME$
|
|
311
|
+
const SERVICE_NAME$b = 'navigator';
|
|
312
|
+
PlatformServiceName.Navigator = SERVICE_NAME$b;
|
|
308
313
|
|
|
309
314
|
/**
|
|
310
315
|
* Navigates to a new location
|
|
@@ -321,11 +326,11 @@ NavigateCommand = __decorate([
|
|
|
321
326
|
})
|
|
322
327
|
], NavigateCommand);
|
|
323
328
|
|
|
324
|
-
const SERVICE_NAME$
|
|
325
|
-
PlatformServiceName.Notification = SERVICE_NAME$
|
|
329
|
+
const SERVICE_NAME$a = 'notifications';
|
|
330
|
+
PlatformServiceName.Notification = SERVICE_NAME$a;
|
|
326
331
|
|
|
327
|
-
const SERVICE_NAME$
|
|
328
|
-
PlatformServiceName.RouteRegistry = SERVICE_NAME$
|
|
332
|
+
const SERVICE_NAME$9 = 'routeRegistry';
|
|
333
|
+
PlatformServiceName.RouteRegistry = SERVICE_NAME$9;
|
|
329
334
|
|
|
330
335
|
/**
|
|
331
336
|
* @public
|
|
@@ -381,28 +386,31 @@ var TaskEventType;
|
|
|
381
386
|
TaskEventType["Failed"] = "task.failed";
|
|
382
387
|
})(TaskEventType || (TaskEventType = {}));
|
|
383
388
|
|
|
384
|
-
const SERVICE_NAME$
|
|
385
|
-
PlatformServiceName.TaskRepository = SERVICE_NAME$
|
|
389
|
+
const SERVICE_NAME$8 = 'state.tasks';
|
|
390
|
+
PlatformServiceName.TaskRepository = SERVICE_NAME$8;
|
|
391
|
+
|
|
392
|
+
const SERVICE_NAME$7 = 'state.configs';
|
|
393
|
+
PlatformServiceName.ConfigRepository = SERVICE_NAME$7;
|
|
386
394
|
|
|
387
|
-
const SERVICE_NAME$6 = 'state.
|
|
388
|
-
PlatformServiceName.
|
|
395
|
+
const SERVICE_NAME$6 = 'state.device';
|
|
396
|
+
PlatformServiceName.Device = SERVICE_NAME$6;
|
|
389
397
|
|
|
390
|
-
const SERVICE_NAME$5 = 'state.
|
|
391
|
-
PlatformServiceName.
|
|
398
|
+
const SERVICE_NAME$5 = 'state.filters';
|
|
399
|
+
PlatformServiceName.FilterRepository = SERVICE_NAME$5;
|
|
392
400
|
|
|
393
|
-
const SERVICE_NAME$4 = 'state.
|
|
394
|
-
PlatformServiceName.
|
|
401
|
+
const SERVICE_NAME$4 = 'state.user-data';
|
|
402
|
+
PlatformServiceName.UserDataRepository = SERVICE_NAME$4;
|
|
395
403
|
|
|
396
|
-
const SERVICE_NAME$3 = 'state.
|
|
397
|
-
PlatformServiceName.
|
|
404
|
+
const SERVICE_NAME$3 = 'state.application';
|
|
405
|
+
PlatformServiceName.Application = SERVICE_NAME$3;
|
|
398
406
|
|
|
399
|
-
const SERVICE_NAME$2 = '
|
|
400
|
-
PlatformServiceName.
|
|
407
|
+
const SERVICE_NAME$2 = 'userPreferences';
|
|
408
|
+
PlatformServiceName.UserPreferencesRepository = SERVICE_NAME$2;
|
|
401
409
|
|
|
402
|
-
const SERVICE_NAME$1 = '
|
|
403
|
-
PlatformServiceName.
|
|
410
|
+
const SERVICE_NAME$1 = 'datetimeformatter';
|
|
411
|
+
PlatformServiceName.DateTimeFormatter = SERVICE_NAME$1;
|
|
404
412
|
|
|
405
|
-
const SERVICE_NAME = '
|
|
406
|
-
PlatformServiceName.
|
|
413
|
+
const SERVICE_NAME = 'conditionRegistry';
|
|
414
|
+
PlatformServiceName.ConditionRegistry = SERVICE_NAME;
|
|
407
415
|
|
|
408
416
|
exports.PlatformServiceName = PlatformServiceName;
|
|
@@ -44,6 +44,10 @@ export class CurrencyPicker {
|
|
|
44
44
|
* Whether the current property is readonly
|
|
45
45
|
*/
|
|
46
46
|
this.readonly = false;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the current property is invalid
|
|
49
|
+
*/
|
|
50
|
+
this.invalid = false;
|
|
47
51
|
/**
|
|
48
52
|
* Whether the current property is disabled
|
|
49
53
|
*/
|
|
@@ -67,7 +71,7 @@ export class CurrencyPicker {
|
|
|
67
71
|
};
|
|
68
72
|
}
|
|
69
73
|
render() {
|
|
70
|
-
return (h("limel-picker", { label: this.label || this.defaultLabel, value: this.value, helperText: this.helperText, onChange: this.handleChange, badgeIcons: false, disabled: this.disabled, required: this.required, readonly: this.readonly, searcher: this.search }));
|
|
74
|
+
return (h("limel-picker", { label: this.label || this.defaultLabel, value: this.value, helperText: this.helperText, onChange: this.handleChange, badgeIcons: false, disabled: this.disabled, required: this.required, readonly: this.readonly, invalid: this.readonly, searcher: this.search }));
|
|
71
75
|
}
|
|
72
76
|
get translator() {
|
|
73
77
|
var _a;
|
|
@@ -195,6 +199,24 @@ export class CurrencyPicker {
|
|
|
195
199
|
"reflect": true,
|
|
196
200
|
"defaultValue": "false"
|
|
197
201
|
},
|
|
202
|
+
"invalid": {
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "boolean",
|
|
207
|
+
"resolved": "boolean",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Whether the current property is invalid"
|
|
215
|
+
},
|
|
216
|
+
"attribute": "invalid",
|
|
217
|
+
"reflect": true,
|
|
218
|
+
"defaultValue": "false"
|
|
219
|
+
},
|
|
198
220
|
"disabled": {
|
|
199
221
|
"type": "boolean",
|
|
200
222
|
"mutable": false,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
import { PlatformServiceName, } from '@limetech/lime-web-components';
|
|
3
|
-
import { fromServerDate } from './from-server-date';
|
|
4
3
|
import { toServerDate } from './to-server-date';
|
|
5
4
|
/**
|
|
6
5
|
* When developing apps, add-ons, or solution for Lime CRM,
|
|
@@ -67,14 +66,11 @@ export class DatePicker {
|
|
|
67
66
|
return (h("limel-date-picker", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, placeholder: this.placeholder, helperText: this.helperText, required: this.required, value: this.parseDateValue(), type: this.type, formatter: this.formatter, onChange: this.handleChange }));
|
|
68
67
|
}
|
|
69
68
|
parseDateValue() {
|
|
70
|
-
|
|
69
|
+
const value = this.value;
|
|
71
70
|
if (!value) {
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
value = new Date(value);
|
|
76
|
-
}
|
|
77
|
-
return fromServerDate(value, this.type);
|
|
73
|
+
return this.dateTimeFormatter.parse(value, dateTimePropertyTypes[this.type] || this.type);
|
|
78
74
|
}
|
|
79
75
|
get dateTimeFormatter() {
|
|
80
76
|
return this.platform.get(PlatformServiceName.DateTimeFormatter);
|
|
@@ -23,5 +23,11 @@ class ExampleFormatter {
|
|
|
23
23
|
}
|
|
24
24
|
return Intl.DateTimeFormat(locale, formattingOptions[type]).format(date);
|
|
25
25
|
}
|
|
26
|
+
parse(date) {
|
|
27
|
+
if (typeof date === 'string') {
|
|
28
|
+
return new Date(date);
|
|
29
|
+
}
|
|
30
|
+
return date;
|
|
31
|
+
}
|
|
26
32
|
}
|
|
27
33
|
platform.register(PlatformServiceName.DateTimeFormatter, new ExampleFormatter());
|