@limetech/lime-elements 34.1.0-next.3 → 34.1.0-next.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/cjs/{_arrayIncludesWith-d69e30af.js → _arrayIncludesWith-36a6fafb.js} +7 -6
  2. package/dist/cjs/{_assignValue-493aac17.js → _assignValue-c9fc3712.js} +2 -2
  3. package/dist/cjs/{_defineProperty-c081d04c.js → _defineProperty-8351e789.js} +4 -3
  4. package/dist/cjs/eq-9a943b00.js +75 -0
  5. package/dist/cjs/{isArrayLike-2bebb99c.js → isArrayLike-ac53bdac.js} +1 -30
  6. package/dist/cjs/{isEqual-1ce0c121.js → isEqual-e3b9c27c.js} +21 -19
  7. package/dist/cjs/{eq-3b43a5ca.js → isObject-e28b7997.js} +0 -71
  8. package/dist/cjs/isObjectLike-3e3f0cba.js +31 -0
  9. package/dist/cjs/{isSymbol-4666002c.js → isSymbol-d22b2798.js} +3 -3
  10. package/dist/cjs/lime-elements.cjs.js +1 -1
  11. package/dist/cjs/limel-chip-set.cjs.entry.js +50 -28
  12. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-color-picker-palette_2.cjs.entry.js +188 -0
  14. package/dist/cjs/limel-color-picker.cjs.entry.js +51 -0
  15. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  16. package/dist/cjs/{limel-flatpickr-adapter_2.cjs.entry.js → limel-flatpickr-adapter.cjs.entry.js} +8 -801
  17. package/dist/cjs/limel-form.cjs.entry.js +64 -26
  18. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-input-field.cjs.entry.js +713 -0
  20. package/dist/cjs/limel-list_3.cjs.entry.js +2431 -0
  21. package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-menu.cjs.entry.js +5 -4
  23. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
  24. package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-slider.cjs.entry.js +96 -13
  26. package/dist/cjs/limel-tab-bar.cjs.entry.js +7 -5
  27. package/dist/cjs/limel-table.cjs.entry.js +9 -7
  28. package/dist/cjs/{limel-tooltip.cjs.entry.js → limel-tooltip_2.cjs.entry.js} +16 -0
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/cjs/{pickBy-64252559.js → pickBy-88b0430a.js} +10 -10
  31. package/dist/cjs/toNumber-062ea29c.js +99 -0
  32. package/dist/cjs/{zipObject-2f430e94.js → zipObject-4050a45f.js} +1 -1
  33. package/dist/collection/collection-manifest.json +2 -0
  34. package/dist/collection/components/chip-set/chip-set.css +14 -0
  35. package/dist/collection/components/chip-set/chip-set.js +75 -35
  36. package/dist/collection/components/code-editor/code-editor.css +7 -0
  37. package/dist/collection/components/color-picker/color-picker-palette.css +1239 -0
  38. package/dist/collection/components/color-picker/color-picker-palette.js +135 -0
  39. package/dist/collection/components/color-picker/color-picker.css +108 -0
  40. package/dist/collection/components/color-picker/color-picker.js +189 -0
  41. package/dist/collection/components/color-picker/swatches.js +29 -0
  42. package/dist/collection/components/file/file.js +1 -1
  43. package/dist/collection/components/form/adapters/widget-adapter.js +4 -1
  44. package/dist/collection/components/form/form.js +73 -0
  45. package/dist/collection/components/form/templates/array-field-collapsible-item.js +8 -8
  46. package/dist/collection/components/form/templates/common.js +1 -1
  47. package/dist/collection/components/form/widgets/select.js +3 -4
  48. package/dist/collection/components/grid/grid.css +1 -1
  49. package/dist/collection/components/input-field/input-field.css +13 -0
  50. package/dist/collection/components/list/list-renderer.js +17 -0
  51. package/dist/collection/components/list/list.css +327 -3
  52. package/dist/collection/components/list/list.js +1 -0
  53. package/dist/collection/components/menu-list/menu-list.css +1312 -60
  54. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +7 -5
  55. package/dist/collection/components/progress-flow/progress-flow.css +0 -4
  56. package/dist/collection/components/slider/slider.js +96 -13
  57. package/dist/esm/{_arrayIncludesWith-3f5ce249.js → _arrayIncludesWith-b5d3fd9e.js} +5 -4
  58. package/dist/esm/{_assignValue-94fb6adc.js → _assignValue-08fe10bc.js} +2 -2
  59. package/dist/esm/{_defineProperty-cbf98a2a.js → _defineProperty-8c869077.js} +2 -1
  60. package/dist/esm/eq-c1c7f528.js +72 -0
  61. package/dist/esm/{isArrayLike-14db8f02.js → isArrayLike-dd37ba9a.js} +2 -30
  62. package/dist/esm/{isEqual-4d982635.js → isEqual-4f22635f.js} +5 -3
  63. package/dist/esm/{eq-f40dd1d6.js → isObject-c74e273c.js} +1 -70
  64. package/dist/esm/isObjectLike-38996507.js +29 -0
  65. package/dist/esm/{isSymbol-84252d8e.js → isSymbol-5bf20921.js} +2 -2
  66. package/dist/esm/lime-elements.js +1 -1
  67. package/dist/esm/limel-chip-set.entry.js +50 -28
  68. package/dist/esm/limel-code-editor.entry.js +1 -1
  69. package/dist/esm/limel-color-picker-palette_2.entry.js +183 -0
  70. package/dist/esm/limel-color-picker.entry.js +47 -0
  71. package/dist/esm/limel-file.entry.js +1 -1
  72. package/dist/esm/{limel-flatpickr-adapter_2.entry.js → limel-flatpickr-adapter.entry.js} +8 -800
  73. package/dist/esm/limel-form.entry.js +60 -22
  74. package/dist/esm/limel-grid.entry.js +1 -1
  75. package/dist/esm/limel-input-field.entry.js +709 -0
  76. package/dist/esm/limel-list_3.entry.js +2425 -0
  77. package/dist/esm/limel-menu-list.entry.js +1 -1
  78. package/dist/esm/limel-menu.entry.js +5 -4
  79. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  80. package/dist/esm/limel-progress-flow.entry.js +1 -1
  81. package/dist/esm/limel-slider.entry.js +96 -13
  82. package/dist/esm/limel-tab-bar.entry.js +7 -5
  83. package/dist/esm/limel-table.entry.js +9 -7
  84. package/dist/esm/{limel-tooltip.entry.js → limel-tooltip_2.entry.js} +16 -1
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/{pickBy-c485c1b5.js → pickBy-8a849e46.js} +5 -5
  87. package/dist/esm/toNumber-a6ed64f0.js +97 -0
  88. package/dist/esm/{zipObject-53fcafb3.js → zipObject-22e88ce9.js} +1 -1
  89. package/dist/lime-elements/lime-elements.esm.js +1 -1
  90. package/dist/lime-elements/{p-c07139f1.entry.js → p-03aa01b5.entry.js} +2 -2
  91. package/dist/lime-elements/p-090bc949.js +1 -0
  92. package/dist/lime-elements/{p-c6b97214.entry.js → p-0ce9165f.entry.js} +1 -1
  93. package/dist/lime-elements/p-13f0e4f4.entry.js +1 -0
  94. package/dist/lime-elements/p-1876a96a.entry.js +1 -0
  95. package/dist/lime-elements/{p-425a0596.js → p-1a64b531.js} +1 -1
  96. package/dist/lime-elements/p-365098fe.js +1 -0
  97. package/dist/lime-elements/p-379955f4.js +1 -0
  98. package/dist/lime-elements/{p-11d5a71a.entry.js → p-411ae86d.entry.js} +1 -1
  99. package/dist/lime-elements/p-426d11b4.js +1 -0
  100. package/dist/lime-elements/p-440084ea.js +1 -0
  101. package/dist/lime-elements/p-468e940e.entry.js +16 -0
  102. package/dist/lime-elements/p-4bc5d3fc.entry.js +1 -0
  103. package/dist/lime-elements/p-511d71e0.entry.js +1 -0
  104. package/dist/lime-elements/p-58cbe99d.entry.js +1 -0
  105. package/dist/lime-elements/p-6003f817.entry.js +1 -0
  106. package/dist/lime-elements/p-622be09b.entry.js +126 -0
  107. package/dist/lime-elements/p-7f43b0c4.js +1 -0
  108. package/dist/lime-elements/p-858c6b82.js +1 -0
  109. package/dist/lime-elements/{p-a1153d2a.entry.js → p-8ad5e143.entry.js} +1 -1
  110. package/dist/lime-elements/{p-b386bfeb.entry.js → p-a2cf74c1.entry.js} +1 -1
  111. package/dist/lime-elements/{p-d070f0e7.entry.js → p-a4c532a7.entry.js} +1 -1
  112. package/dist/lime-elements/p-a77cbb08.entry.js +1 -0
  113. package/dist/lime-elements/p-c93050d6.js +1 -0
  114. package/dist/lime-elements/p-d529bb7d.js +1 -0
  115. package/dist/lime-elements/p-ec727143.entry.js +82 -0
  116. package/dist/lime-elements/p-eda23c05.js +1 -0
  117. package/dist/lime-elements/{p-ff0217b3.entry.js → p-f2c706b8.entry.js} +1 -1
  118. package/dist/lime-elements/p-f83213b8.js +1 -0
  119. package/dist/lime-elements/{p-03c28bee.entry.js → p-fbe6100e.entry.js} +1 -1
  120. package/dist/types/components/chip-set/chip-set.d.ts +12 -0
  121. package/dist/types/components/color-picker/color-picker-palette.d.ts +32 -0
  122. package/dist/types/components/color-picker/color-picker.d.ts +54 -0
  123. package/dist/types/components/color-picker/swatches.d.ts +4 -0
  124. package/dist/types/components/form/form.d.ts +11 -1
  125. package/dist/types/components/list/list-item.types.d.ts +14 -0
  126. package/dist/types/components/list/list-renderer.d.ts +2 -0
  127. package/dist/types/components/list/list.d.ts +1 -0
  128. package/dist/types/components/slider/slider.d.ts +8 -0
  129. package/dist/types/components.d.ts +139 -1
  130. package/package.json +1 -1
  131. package/dist/cjs/limel-list_2.cjs.entry.js +0 -485
  132. package/dist/cjs/limel-popover.cjs.entry.js +0 -116
  133. package/dist/cjs/limel-portal.cjs.entry.js +0 -1935
  134. package/dist/cjs/limel-tooltip-content.cjs.entry.js +0 -22
  135. package/dist/esm/limel-list_2.entry.js +0 -480
  136. package/dist/esm/limel-popover.entry.js +0 -112
  137. package/dist/esm/limel-portal.entry.js +0 -1931
  138. package/dist/esm/limel-tooltip-content.entry.js +0 -18
  139. package/dist/lime-elements/p-227d2c5a.entry.js +0 -1
  140. package/dist/lime-elements/p-3ce2d46a.js +0 -1
  141. package/dist/lime-elements/p-77afe6dd.entry.js +0 -1
  142. package/dist/lime-elements/p-7c4d91f5.js +0 -1
  143. package/dist/lime-elements/p-845e645a.entry.js +0 -1
  144. package/dist/lime-elements/p-8bbe3720.js +0 -1
  145. package/dist/lime-elements/p-8e4ff107.js +0 -1
  146. package/dist/lime-elements/p-acfbf7ac.js +0 -1
  147. package/dist/lime-elements/p-b5d6abc3.entry.js +0 -126
  148. package/dist/lime-elements/p-bbc1bb01.entry.js +0 -1
  149. package/dist/lime-elements/p-c0765c9b.js +0 -1
  150. package/dist/lime-elements/p-df55ee67.entry.js +0 -82
  151. package/dist/lime-elements/p-e28a4246.entry.js +0 -1
  152. package/dist/lime-elements/p-e5738ec6.entry.js +0 -1
  153. package/dist/lime-elements/p-ee7355e7.js +0 -1
  154. package/dist/lime-elements/p-f4495f59.entry.js +0 -1
  155. package/dist/lime-elements/p-fbe32287.entry.js +0 -16
  156. package/dist/lime-elements/p-fc610f15.js +0 -1
@@ -1,17 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-2316f345.js';
2
2
  import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-5ec8f9b7.js';
3
- import { k as keys$5, a as arrayMap$1, g as getTag$1, m as mapToArray$1, i as isBuffer, b as isTypedArray$1, c as isArguments$3, d as isPrototype$1, e as baseKeys$1, S as Set$2, s as setToArray$1, f as SetCache$1, h as cacheHas$1, j as isEqual$1 } from './isEqual-4d982635.js';
3
+ import { k as keys$5, a as arrayMap$1, g as getTag$1, m as mapToArray$1, i as isBuffer, b as isTypedArray$1, c as isArguments$3, d as isPrototype$1, e as baseKeys$1, S as Set$2, s as setToArray$1, f as SetCache$1, h as cacheHas$1, j as isEqual$1 } from './isEqual-4f22635f.js';
4
4
  import { i as isArray$4 } from './isArray-80298bc7.js';
5
- import { i as isObjectLike$1, a as isArrayLike$1 } from './isArrayLike-14db8f02.js';
6
- import { g as getPrototype$1, t as toString$3, b as baseIteratee$1, a as get$3, p as pickBy, n as negate, h as has$1 } from './pickBy-c485c1b5.js';
7
- import { b as baseAssignValue$1 } from './_assignValue-94fb6adc.js';
8
- import { b as baseGetTag$1 } from './eq-f40dd1d6.js';
9
- import { a as arrayIncludes$1, b as arrayIncludesWith$1, c as baseRest$1, d as baseFlatten$1, i as isArrayLikeObject$1 } from './_arrayIncludesWith-3f5ce249.js';
5
+ import { i as isArrayLike$1 } from './isArrayLike-dd37ba9a.js';
6
+ import { g as getPrototype$1, t as toString$3, b as baseIteratee$1, a as get$3, p as pickBy, n as negate, h as has$1 } from './pickBy-8a849e46.js';
7
+ import { b as baseAssignValue$1 } from './_assignValue-08fe10bc.js';
8
+ import { b as baseGetTag$1 } from './isObject-c74e273c.js';
9
+ import { i as isObjectLike$1 } from './isObjectLike-38996507.js';
10
+ import { a as arrayIncludes$1, b as arrayIncludesWith$1, c as baseRest$1, d as baseFlatten$1, i as isArrayLikeObject$1 } from './_arrayIncludesWith-b5d3fd9e.js';
10
11
  import { m as moment } from './moment-8dadd938.js';
11
12
  import { i as isMultiple } from './multiple-254f4b61.js';
12
13
  import { c as createRandomString } from './random-string-2246b81e.js';
13
- import './_defineProperty-cbf98a2a.js';
14
- import './isSymbol-84252d8e.js';
14
+ import './eq-c1c7f528.js';
15
+ import './_defineProperty-8c869077.js';
16
+ import './isSymbol-5bf20921.js';
15
17
 
16
18
  /*
17
19
  object-assign
@@ -23798,7 +23800,7 @@ function findFirstEntry(data, subSchema) {
23798
23800
  getRequiredEntry(data, subSchema),
23799
23801
  ...Object.entries(data),
23800
23802
  ];
23801
- return entries.filter(([_, value]) => !!value)[0];
23803
+ return entries.filter(([_, value]) => !!value && typeof value !== 'boolean')[0];
23802
23804
  }
23803
23805
  function getRequiredEntry(data, subSchema) {
23804
23806
  if (!('required' in subSchema)) {
@@ -23870,10 +23872,10 @@ class CollapsibleItemTemplate extends react.Component {
23870
23872
  const { item, index } = this.props;
23871
23873
  const actions = [
23872
23874
  {
23873
- id: 'remove',
23874
- icon: 'trash',
23875
- disabled: !item.hasRemove,
23876
- run: item.onDropIndexClick(index),
23875
+ id: 'down',
23876
+ icon: 'down_arrow',
23877
+ disabled: !item.hasMoveDown,
23878
+ run: item.onReorderClick(index, index + 1),
23877
23879
  },
23878
23880
  {
23879
23881
  id: 'up',
@@ -23882,10 +23884,10 @@ class CollapsibleItemTemplate extends react.Component {
23882
23884
  run: item.onReorderClick(index, index - 1),
23883
23885
  },
23884
23886
  {
23885
- id: 'down',
23886
- icon: 'down_arrow',
23887
- disabled: !item.hasMoveDown,
23888
- run: item.onReorderClick(index, index + 1),
23887
+ id: 'remove',
23888
+ icon: 'trash',
23889
+ disabled: !item.hasRemove,
23890
+ run: item.onDropIndexClick(index),
23889
23891
  },
23890
23892
  ];
23891
23893
  element.actions = actions;
@@ -24434,9 +24436,12 @@ class LimeElementsWidgetAdapter extends react.Component {
24434
24436
  });
24435
24437
  }
24436
24438
  isDisabled() {
24439
+ var _a, _b;
24437
24440
  const widgetProps = this.props.widgetProps;
24438
24441
  const options = widgetProps.schema.lime;
24439
- return widgetProps.disabled || (options === null || options === void 0 ? void 0 : options.disabled);
24442
+ return (widgetProps.disabled ||
24443
+ (options === null || options === void 0 ? void 0 : options.disabled) ||
24444
+ ((_b = (_a = options === null || options === void 0 ? void 0 : options.component) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.disabled));
24440
24445
  }
24441
24446
  isReadOnly() {
24442
24447
  const widgetProps = this.props.widgetProps;
@@ -29461,6 +29466,7 @@ class Select extends react.Component {
29461
29466
  this.handleChange = this.handleChange.bind(this);
29462
29467
  }
29463
29468
  render() {
29469
+ var _a, _b;
29464
29470
  const props = this.props;
29465
29471
  const enumOptions = props.options.enumOptions;
29466
29472
  const options = enumOptions.map(createOption);
@@ -29471,6 +29477,7 @@ class Select extends react.Component {
29471
29477
  else {
29472
29478
  value = findValue(props.value, options);
29473
29479
  }
29480
+ const additionalProps = ((_b = (_a = props.schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.props) || {};
29474
29481
  return react.createElement(LimeElementsWidgetAdapter, {
29475
29482
  name: 'limel-select',
29476
29483
  value: value,
@@ -29478,10 +29485,7 @@ class Select extends react.Component {
29478
29485
  change: this.handleChange,
29479
29486
  },
29480
29487
  widgetProps: props,
29481
- extraProps: {
29482
- multiple: props.multiple,
29483
- options: options,
29484
- },
29488
+ extraProps: Object.assign({ multiple: props.multiple, options: options }, additionalProps),
29485
29489
  });
29486
29490
  }
29487
29491
  handleChange(event) {
@@ -29536,8 +29540,13 @@ let Form = class {
29536
29540
  * The schema used to render the form
29537
29541
  */
29538
29542
  this.schema = {};
29543
+ /**
29544
+ * Set to `true` to disable the whole form.
29545
+ */
29546
+ this.disabled = false;
29539
29547
  this.isValid = true;
29540
29548
  this.handleChange = this.handleChange.bind(this);
29549
+ this.getCustomErrorMessages = this.getCustomErrorMessages.bind(this);
29541
29550
  }
29542
29551
  connectedCallback() {
29543
29552
  this.initialize();
@@ -29582,6 +29591,8 @@ let Form = class {
29582
29591
  FieldTemplate: FieldTemplate,
29583
29592
  ArrayFieldTemplate: ArrayFieldTemplate,
29584
29593
  ObjectFieldTemplate: ObjectFieldTemplate,
29594
+ disabled: this.disabled,
29595
+ transformErrors: this.getCustomErrorMessages,
29585
29596
  formContext: {
29586
29597
  schema: this.modifiedSchema,
29587
29598
  rootValue: this.value,
@@ -29643,6 +29654,33 @@ let Form = class {
29643
29654
  };
29644
29655
  });
29645
29656
  }
29657
+ getCustomErrorMessages(originalErrors) {
29658
+ if (!this.transformErrors) {
29659
+ return originalErrors;
29660
+ }
29661
+ const errors = originalErrors.map((error) => {
29662
+ return {
29663
+ name: error.name,
29664
+ property: error.property,
29665
+ message: error.message,
29666
+ // For some reason 'schemaPath' is missing from the AjvError type definition:
29667
+ // https://github.com/rjsf-team/react-jsonschema-form/issues/2140
29668
+ // eslint-disable-next-line @typescript-eslint/dot-notation
29669
+ schemaPath: error['schemaPath'],
29670
+ };
29671
+ });
29672
+ // Use `.call({}, …)` here to bind `this` to an empty object to prevent
29673
+ // the consumer submitted `transformErrors` from getting access to our
29674
+ // component's internals. /Ads
29675
+ return this.transformErrors
29676
+ .call({}, errors)
29677
+ .map((transformedError) => {
29678
+ const originalError = originalErrors.find((error) => {
29679
+ return transformedError.property === error.property;
29680
+ });
29681
+ return Object.assign(Object.assign({}, originalError), { message: transformedError.message });
29682
+ });
29683
+ }
29646
29684
  get host() { return getElement(this); }
29647
29685
  static get watchers() { return {
29648
29686
  "schema": ["setSchema"]
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-2316f345.js';
2
2
 
3
- const gridCss = ":host{display:block;position:relative}:host([hidden]){display:none}slot{display:grid;grid-template-areas:var(--lime-grid-area, \"\");grid-template-columns:repeat(var(--lime-grid-columns, 4), minmax(0, 1fr));grid-gap:var(--lime-grid-gutter, 1rem);grid-auto-flow:row dense;grid-auto-rows:var(--lime-grid-cell-height, 2.5rem);margin:0;height:100%;width:100%}";
3
+ const gridCss = ":host{display:block;position:relative}:host([hidden]){display:none}slot{display:grid;grid-template-areas:var(--lime-grid-area, \"\");grid-template-columns:repeat(var(--lime-grid-columns, 4), minmax(0, 1fr));gap:var(--lime-grid-gutter, 1rem);grid-auto-flow:row dense;grid-auto-rows:var(--lime-grid-cell-height, 2.5rem);margin:0;height:100%;width:100%}";
4
4
 
5
5
  let Grid = class {
6
6
  constructor(hostRef) {