@limetech/lime-elements 35.0.1-next.1 → 35.0.1-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cjs/{dateFormatter-34b77ead.js → dateFormatter-05d80b12.js} +1 -1
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
  4. package/dist/cjs/limel-date-picker.cjs.entry.js +2 -2
  5. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +70 -66
  6. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-picker.cjs.entry.js +2 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{moment-5c6581b7.js → moment-5cfac5cd.js} +1 -1
  10. package/dist/collection/collection-manifest.json +1 -1
  11. package/dist/collection/components/picker/picker.js +2 -1
  12. package/dist/esm/{dateFormatter-ed618478.js → dateFormatter-2cad0292.js} +1 -1
  13. package/dist/esm/lime-elements.js +1 -1
  14. package/dist/esm/limel-code-editor.entry.js +2 -2
  15. package/dist/esm/limel-date-picker.entry.js +2 -2
  16. package/dist/esm/limel-flatpickr-adapter.entry.js +70 -66
  17. package/dist/esm/limel-form.entry.js +1 -1
  18. package/dist/esm/limel-picker.entry.js +2 -1
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/{moment-29c213b7.js → moment-367e51c5.js} +1 -1
  21. package/dist/esm/polyfills/css-shim.js +1 -1
  22. package/dist/lime-elements/lime-elements.esm.js +1 -1
  23. package/dist/lime-elements/{p-b422045e.entry.js → p-1a9a961a.entry.js} +1 -1
  24. package/dist/lime-elements/{p-2ff40ce6.js → p-3af5f9ad.js} +1 -1
  25. package/dist/lime-elements/{p-eae8c615.entry.js → p-4d5a874a.entry.js} +1 -1
  26. package/dist/lime-elements/p-6966b5df.entry.js +1 -0
  27. package/dist/lime-elements/{p-80327bb8.entry.js → p-84f933f7.entry.js} +2 -2
  28. package/dist/lime-elements/p-af0ec482.entry.js +16 -0
  29. package/dist/lime-elements/{p-72e03943.js → p-d76f896d.js} +1 -1
  30. package/package.json +12 -12
  31. package/dist/lime-elements/p-da962c64.entry.js +0 -1
  32. package/dist/lime-elements/p-fbc5d7e8.entry.js +0 -16
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
4
- const moment = require('./moment-5c6581b7.js');
4
+ const moment = require('./moment-5cfac5cd.js');
5
5
 
6
6
  _commonjsHelpers.createCommonjsModule(function (module, exports) {
7
7
  (function (global, factory) {
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-2a28697b.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.15.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lime-elements.cjs.js', document.baseURI).href));
@@ -1329,7 +1329,7 @@ var codemirror = _commonjsHelpers.createCommonjsModule(function (module, exports
1329
1329
  // Add a span to a line.
1330
1330
  function addMarkedSpan(line, span, op) {
1331
1331
  var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));
1332
- if (inThisOp && inThisOp.has(line.markedSpans)) {
1332
+ if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
1333
1333
  line.markedSpans.push(span);
1334
1334
  } else {
1335
1335
  line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
@@ -9847,7 +9847,7 @@ var codemirror = _commonjsHelpers.createCommonjsModule(function (module, exports
9847
9847
 
9848
9848
  addLegacyProps(CodeMirror);
9849
9849
 
9850
- CodeMirror.version = "5.65.2";
9850
+ CodeMirror.version = "5.65.3";
9851
9851
 
9852
9852
  return CodeMirror;
9853
9853
 
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-2a28697b.js');
6
6
  const randomString = require('./random-string-4c3b7f1c.js');
7
7
  const device = require('./device-c5841113.js');
8
- const dateFormatter = require('./dateFormatter-34b77ead.js');
8
+ const dateFormatter = require('./dateFormatter-05d80b12.js');
9
9
  const component = require('./component-ae3bfacf.js');
10
10
  require('./_commonjsHelpers-0c557e26.js');
11
- require('./moment-5c6581b7.js');
11
+ require('./moment-5cfac5cd.js');
12
12
  require('./component-67144c1c.js');
13
13
  require('./component-cf490570.js');
14
14
  require('./ponyfill-98ca4766.js');
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-2a28697b.js');
6
6
  const translations = require('./translations-5a8d7f6c.js');
7
7
  const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
8
- const dateFormatter = require('./dateFormatter-34b77ead.js');
9
- const moment = require('./moment-5c6581b7.js');
8
+ const dateFormatter = require('./dateFormatter-05d80b12.js');
9
+ const moment = require('./moment-5cfac5cd.js');
10
10
  const device = require('./device-c5841113.js');
11
11
  const eq = require('./eq-9a943b00.js');
12
12
  const isArrayLike$1 = require('./isArrayLike-ac53bdac.js');
@@ -777,7 +777,8 @@ function FlatpickrInstance(element, instanceConfig) {
777
777
  }
778
778
  function getClosestActiveElement() {
779
779
  var _a;
780
- return ((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode()).activeElement || document.activeElement;
780
+ return (((_a = self.calendarContainer) === null || _a === void 0 ? void 0 : _a.getRootNode())
781
+ .activeElement || document.activeElement);
781
782
  }
782
783
  function bindToInstance(fn) {
783
784
  return fn.bind(self);
@@ -1102,7 +1103,7 @@ function FlatpickrInstance(element, instanceConfig) {
1102
1103
  ? self.config.appendTo
1103
1104
  : window.document.body).appendChild(self.calendarContainer);
1104
1105
  }
1105
- function createDay(className, date, dayNumber, i) {
1106
+ function createDay(className, date, _dayNumber, i) {
1106
1107
  var dateIsEnabled = isEnabled(date, true), dayElement = createElement$1("span", className, date.getDate().toString());
1107
1108
  dayElement.dateObj = date;
1108
1109
  dayElement.$i = i;
@@ -1138,7 +1139,7 @@ function FlatpickrInstance(element, instanceConfig) {
1138
1139
  if (self.weekNumbers &&
1139
1140
  self.config.showMonths === 1 &&
1140
1141
  className !== "prevMonthDay" &&
1141
- dayNumber % 7 === 1) {
1142
+ i % 7 === 6) {
1142
1143
  self.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + self.config.getWeek(date) + "</span>");
1143
1144
  }
1144
1145
  triggerEvent("onDayCreate", dayElement);
@@ -1702,8 +1703,9 @@ function FlatpickrInstance(element, instanceConfig) {
1702
1703
  }
1703
1704
  function onBlur(e) {
1704
1705
  var isInput = e.target === self._input;
1706
+ var valueChanged = self._input.value.trimEnd() !== getDateStr();
1705
1707
  if (isInput &&
1706
- (self.selectedDates.length > 0 || self._input.value.length > 0) &&
1708
+ valueChanged &&
1707
1709
  !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {
1708
1710
  self.setDate(self._input.value, true, e.target === self.altInput
1709
1711
  ? self.config.altFormat
@@ -2524,7 +2526,8 @@ function FlatpickrInstance(element, instanceConfig) {
2524
2526
  function isDateSelected(date) {
2525
2527
  for (var i = 0; i < self.selectedDates.length; i++) {
2526
2528
  var selectedDate = self.selectedDates[i];
2527
- if (selectedDate instanceof Date && compareDates(selectedDate, date) === 0)
2529
+ if (selectedDate instanceof Date &&
2530
+ compareDates(selectedDate, date) === 0)
2528
2531
  return "" + i;
2529
2532
  }
2530
2533
  return false;
@@ -2562,7 +2565,9 @@ function FlatpickrInstance(element, instanceConfig) {
2562
2565
  ? self.currentMonth + 1 > self.config.maxDate.getMonth()
2563
2566
  : self.currentYear > self.config.maxDate.getFullYear());
2564
2567
  }
2565
- function getDateStr(format) {
2568
+ function getDateStr(specificFormat) {
2569
+ var format = specificFormat ||
2570
+ (self.config.altInput ? self.config.altFormat : self.config.dateFormat);
2566
2571
  return self.selectedDates
2567
2572
  .map(function (dObj) { return self.formatDate(dObj, format); })
2568
2573
  .filter(function (d, i, arr) {
@@ -3211,7 +3216,15 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3211
3216
  };
3212
3217
  var Kurdish = {
3213
3218
  weekdays: {
3214
- shorthand: ["یەکشەممە", "دووشەممە", "سێشەممە", "چوارشەممە", "پێنجشەممە", "هەینی", "شەممە"],
3219
+ shorthand: [
3220
+ "یەکشەممە",
3221
+ "دووشەممە",
3222
+ "سێشەممە",
3223
+ "چوارشەممە",
3224
+ "پێنجشەممە",
3225
+ "هەینی",
3226
+ "شەممە",
3227
+ ],
3215
3228
  longhand: [
3216
3229
  "یەکشەممە",
3217
3230
  "دووشەممە",
@@ -4279,15 +4292,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4279
4292
  };
4280
4293
  var Armenian = {
4281
4294
  weekdays: {
4282
- shorthand: [
4283
- "Կիր",
4284
- "Երկ",
4285
- "Երք",
4286
- "Չրք",
4287
- "Հնգ",
4288
- "Ուրբ",
4289
- "Շբթ",
4290
- ],
4295
+ shorthand: ["Կիր", "Երկ", "Երք", "Չրք", "Հնգ", "Ուրբ", "Շբթ"],
4291
4296
  longhand: [
4292
4297
  "Կիրակի",
4293
4298
  "Եկուշաբթի",
@@ -5026,15 +5031,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5026
5031
  var Malaysian = {
5027
5032
  weekdays: {
5028
5033
  shorthand: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab"],
5029
- longhand: [
5030
- "Ahad",
5031
- "Isnin",
5032
- "Selasa",
5033
- "Rabu",
5034
- "Khamis",
5035
- "Jumaat",
5036
- "Sabtu",
5037
- ],
5034
+ longhand: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu"],
5038
5035
  },
5039
5036
  months: {
5040
5037
  shorthand: [
@@ -5190,62 +5187,62 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5190
5187
  };
5191
5188
  fp$E.l10ns.nl = Dutch;
5192
5189
 
5193
- var fp$F = typeof window !== 'undefined' && window.flatpickr !== undefined
5190
+ var fp$F = typeof window !== "undefined" && window.flatpickr !== undefined
5194
5191
  ? window.flatpickr
5195
5192
  : {
5196
5193
  l10ns: {},
5197
5194
  };
5198
5195
  var NorwegianNynorsk = {
5199
5196
  weekdays: {
5200
- shorthand: ['Sø.', 'Må.', 'Ty.', 'On.', 'To.', 'Fr.', 'La.'],
5197
+ shorthand: ["Sø.", "Må.", "Ty.", "On.", "To.", "Fr.", "La."],
5201
5198
  longhand: [
5202
- 'Søndag',
5203
- 'Måndag',
5204
- 'Tysdag',
5205
- 'Onsdag',
5206
- 'Torsdag',
5207
- 'Fredag',
5208
- 'Laurdag',
5199
+ "Søndag",
5200
+ "Måndag",
5201
+ "Tysdag",
5202
+ "Onsdag",
5203
+ "Torsdag",
5204
+ "Fredag",
5205
+ "Laurdag",
5209
5206
  ],
5210
5207
  },
5211
5208
  months: {
5212
5209
  shorthand: [
5213
- 'Jan',
5214
- 'Feb',
5215
- 'Mars',
5216
- 'Apr',
5217
- 'Mai',
5218
- 'Juni',
5219
- 'Juli',
5220
- 'Aug',
5221
- 'Sep',
5222
- 'Okt',
5223
- 'Nov',
5224
- 'Des',
5210
+ "Jan",
5211
+ "Feb",
5212
+ "Mars",
5213
+ "Apr",
5214
+ "Mai",
5215
+ "Juni",
5216
+ "Juli",
5217
+ "Aug",
5218
+ "Sep",
5219
+ "Okt",
5220
+ "Nov",
5221
+ "Des",
5225
5222
  ],
5226
5223
  longhand: [
5227
- 'Januar',
5228
- 'Februar',
5229
- 'Mars',
5230
- 'April',
5231
- 'Mai',
5232
- 'Juni',
5233
- 'Juli',
5234
- 'August',
5235
- 'September',
5236
- 'Oktober',
5237
- 'November',
5238
- 'Desember',
5224
+ "Januar",
5225
+ "Februar",
5226
+ "Mars",
5227
+ "April",
5228
+ "Mai",
5229
+ "Juni",
5230
+ "Juli",
5231
+ "August",
5232
+ "September",
5233
+ "Oktober",
5234
+ "November",
5235
+ "Desember",
5239
5236
  ],
5240
5237
  },
5241
5238
  firstDayOfWeek: 1,
5242
- rangeSeparator: ' til ',
5243
- weekAbbreviation: 'Veke',
5244
- scrollTitle: 'Scroll for å endre',
5245
- toggleTitle: 'Klikk for å veksle',
5239
+ rangeSeparator: " til ",
5240
+ weekAbbreviation: "Veke",
5241
+ scrollTitle: "Scroll for å endre",
5242
+ toggleTitle: "Klikk for å veksle",
5246
5243
  time_24hr: true,
5247
5244
  ordinal: function () {
5248
- return '.';
5245
+ return ".";
5249
5246
  },
5250
5247
  };
5251
5248
  fp$F.l10ns.nn = NorwegianNynorsk;
@@ -5807,6 +5804,13 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5807
5804
  "Dhjetor",
5808
5805
  ],
5809
5806
  },
5807
+ firstDayOfWeek: 1,
5808
+ rangeSeparator: " deri ",
5809
+ weekAbbreviation: "Java",
5810
+ yearAriaLabel: "Viti",
5811
+ monthAriaLabel: "Muaji",
5812
+ hourAriaLabel: "Ora",
5813
+ minuteAriaLabel: "Minuta",
5810
5814
  time_24hr: true,
5811
5815
  };
5812
5816
  fp$P.l10ns.sq = Albanian;
@@ -5916,7 +5920,7 @@ var l10n = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5916
5920
  "december",
5917
5921
  ],
5918
5922
  },
5919
- rangeSeparator: ' till ',
5923
+ rangeSeparator: " till ",
5920
5924
  time_24hr: true,
5921
5925
  ordinal: function () {
5922
5926
  return ".";
@@ -13,7 +13,7 @@ const _assignValue$1 = require('./_assignValue-7c18d8d6.js');
13
13
  const isObject$3 = require('./isObject-e28b7997.js');
14
14
  const isObjectLike$1 = require('./isObjectLike-3e3f0cba.js');
15
15
  const _arrayIncludesWith$1 = require('./_arrayIncludesWith-29083f83.js');
16
- const moment = require('./moment-5c6581b7.js');
16
+ const moment = require('./moment-5cfac5cd.js');
17
17
  const multiple = require('./multiple-8fab83eb.js');
18
18
  const randomString = require('./random-string-4c3b7f1c.js');
19
19
  require('./eq-9a943b00.js');
@@ -442,8 +442,9 @@ const Picker = class {
442
442
  return;
443
443
  }
444
444
  const style = {
445
- color: 'var(--lime-light-grey, #{$lime-light-grey})',
445
+ color: 'rgb(var(--contrast-1100))',
446
446
  'text-align': 'center',
447
+ margin: '0.5rem 1rem',
447
448
  };
448
449
  return index.h("p", { style: style }, this.emptyResultMessage);
449
450
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-2a28697b.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.15.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.15.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -5631,7 +5631,7 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5631
5631
 
5632
5632
  //! moment.js
5633
5633
 
5634
- hooks.version = '2.29.2';
5634
+ hooks.version = '2.29.3';
5635
5635
 
5636
5636
  setHookCallback(createLocal);
5637
5637
 
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "compiler": {
49
49
  "name": "@stencil/core",
50
- "version": "2.15.0",
50
+ "version": "2.15.1",
51
51
  "typescriptVersion": "4.5.4"
52
52
  },
53
53
  "collections": [],
@@ -225,8 +225,9 @@ export class Picker {
225
225
  return;
226
226
  }
227
227
  const style = {
228
- color: 'var(--lime-light-grey, #{$lime-light-grey})',
228
+ color: 'rgb(var(--contrast-1100))',
229
229
  'text-align': 'center',
230
+ margin: '0.5rem 1rem',
230
231
  };
231
232
  return h("p", { style: style }, this.emptyResultMessage);
232
233
  }
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, b as commonjsRequire, a as commonjsGlobal } from './_commonjsHelpers-5ec8f9b7.js';
2
- import { m as moment } from './moment-29c213b7.js';
2
+ import { m as moment } from './moment-367e51c5.js';
3
3
 
4
4
  createCommonjsModule(function (module, exports) {
5
5
  (function (global, factory) {
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-11cd0b60.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.15.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -1325,7 +1325,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
1325
1325
  // Add a span to a line.
1326
1326
  function addMarkedSpan(line, span, op) {
1327
1327
  var inThisOp = op && window.WeakSet && (op.markedSpans || (op.markedSpans = new WeakSet));
1328
- if (inThisOp && inThisOp.has(line.markedSpans)) {
1328
+ if (inThisOp && line.markedSpans && inThisOp.has(line.markedSpans)) {
1329
1329
  line.markedSpans.push(span);
1330
1330
  } else {
1331
1331
  line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];
@@ -9843,7 +9843,7 @@ var codemirror = createCommonjsModule(function (module, exports) {
9843
9843
 
9844
9844
  addLegacyProps(CodeMirror);
9845
9845
 
9846
- CodeMirror.version = "5.65.2";
9846
+ CodeMirror.version = "5.65.3";
9847
9847
 
9848
9848
  return CodeMirror;
9849
9849
 
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-11cd0b60.js';
2
2
  import { c as createRandomString } from './random-string-2246b81e.js';
3
3
  import { i as isIOSDevice, a as isAndroidDevice } from './device-39db3b5f.js';
4
- import { D as DateFormatter } from './dateFormatter-ed618478.js';
4
+ import { D as DateFormatter } from './dateFormatter-2cad0292.js';
5
5
  import { M as MDCTextField } from './component-288691f3.js';
6
6
  import './_commonjsHelpers-5ec8f9b7.js';
7
- import './moment-29c213b7.js';
7
+ import './moment-367e51c5.js';
8
8
  import './component-410aad5a.js';
9
9
  import './component-5b4ac85a.js';
10
10
  import './ponyfill-30263d5e.js';