@aquera/nile-elements 1.2.1-beta-1.5 → 1.2.1-beta-1.7

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 (43) hide show
  1. package/demo/index.html +83 -100
  2. package/demo/variables.css +2 -3
  3. package/dist/index.js +369 -657
  4. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  5. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  6. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  7. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  8. package/dist/nile-calendar/nile-calendar.css.esm.js +38 -221
  9. package/dist/nile-calendar/nile-calendar.esm.js +98 -204
  10. package/dist/nile-select/nile-select.cjs.js +1 -1
  11. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  12. package/dist/nile-select/nile-select.esm.js +4 -4
  13. package/dist/nile-select/virtual-scroll-helper.cjs.js +1 -1
  14. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -1
  15. package/dist/nile-select/virtual-scroll-helper.esm.js +1 -0
  16. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  17. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  18. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  19. package/dist/src/nile-calendar/nile-calendar.css.js +36 -219
  20. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  21. package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
  22. package/dist/src/nile-calendar/nile-calendar.js +93 -318
  23. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  24. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  25. package/dist/src/nile-rich-text-editor/utils.js +1 -537
  26. package/dist/src/nile-rich-text-editor/utils.js.map +1 -1
  27. package/dist/src/nile-select/nile-select.d.ts +1 -0
  28. package/dist/src/nile-select/nile-select.js +30 -9
  29. package/dist/src/nile-select/nile-select.js.map +1 -1
  30. package/dist/src/nile-select/virtual-scroll-helper.js +1 -0
  31. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -1
  32. package/dist/src/nile-virtual-select/nile-virtual-select.js +1 -0
  33. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  34. package/dist/src/version.js +1 -1
  35. package/dist/src/version.js.map +1 -1
  36. package/dist/tsconfig.tsbuildinfo +1 -1
  37. package/package.json +1 -1
  38. package/src/nile-calendar/nile-calendar.css.ts +36 -219
  39. package/src/nile-calendar/nile-calendar.ts +106 -343
  40. package/src/nile-select/nile-select.ts +25 -15
  41. package/src/nile-select/virtual-scroll-helper.ts +2 -0
  42. package/src/nile-virtual-select/nile-virtual-select.ts +1 -0
  43. package/vscode-html-custom-data.json +17 -41
@@ -898,6 +898,7 @@ export class NileVirtualSelect extends NileElement implements NileFormControl {
898
898
 
899
899
  @watch('open', { waitUntilFirstUpdate: true })
900
900
  async handleOpenChange(): Promise<void> {
901
+ this.emit('nile-open-change', { open: this.open });
901
902
  if (this.open && !this.disabled) {
902
903
  await this.handleOpen();
903
904
  this.showListbox = true;
@@ -554,7 +554,7 @@
554
554
  },
555
555
  {
556
556
  "name": "nile-calendar",
557
- "description": "Nile icon component.\n\nAttributes:\n\n * `value` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hide-duration-fields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\n * `startYear` {`number | undefined`} - \n\n * `endYear` {`number | undefined`} - \n\n * `showMonthDropdown` {`boolean`} - \n\n * `showYearDropdown` {`boolean`} - \n\n * `dateFormat` {`string`} - \n\nProperties:\n\n * `valueAttribute` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hideDurationFields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\n * `startYear` {`number | undefined`} - \n\n * `endYear` {`number | undefined`} - \n\n * `showMonthDropdown` {`boolean`} - \n\n * `showYearDropdown` {`boolean`} - \n\n * `dateFormat` {`string`} - \n\n * `startDate` {`Date | null`} - \n\n * `endDate` {`Date | null`} - \n\n * `isSelectingStart` {`boolean`} - \n\n * `hideInput` {`Boolean`} - \n\n * `value` {`Date | null`} - \n\n * `currentMonth` {`number`} - \n\n * `currentYear` {`number`} - \n\n * `allowedDatesLocal` - \n\n * `monthNames` {`string[]`} - \n\n * `yearOptions` {`number[]`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
557
+ "description": "Nile icon component.\n\nAttributes:\n\n * `value` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hide-duration-fields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\nProperties:\n\n * `valueAttribute` {`string | null`} - \n\n * `allowedDates` {`string`} - \n\n * `range` {`boolean`} - \n\n * `hideTypes` {`boolean`} - \n\n * `doubleClickUnselect` {`boolean`} - \n\n * `allowClear` {`boolean`} - \n\n * `type` {`\"absolute\" | \"relative\"`} - \n\n * `selectedUnit` {`TimeUnits`} - \n\n * `selectedValue` {`number`} - \n\n * `hideDurationFields` {`String[]`} - \n\n * `showManualInputs` {`boolean`} - \n\n * `startDate` {`Date | null`} - \n\n * `endDate` {`Date | null`} - \n\n * `isSelectingStart` {`boolean`} - \n\n * `hideInput` {`Boolean`} - \n\n * `value` {`Date | null`} - \n\n * `currentMonth` {`number`} - \n\n * `currentYear` {`number`} - \n\n * `allowedDatesLocal` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
558
558
  "attributes": [
559
559
  {
560
560
  "name": "value",
@@ -630,30 +630,6 @@
630
630
  "name": "showManualInputs",
631
631
  "description": "`showManualInputs` {`boolean`} - \n\nProperty: showManualInputs\n\nDefault: false",
632
632
  "valueSet": "v"
633
- },
634
- {
635
- "name": "startYear",
636
- "description": "`startYear` {`number | undefined`} - \n\nProperty: startYear",
637
- "values": []
638
- },
639
- {
640
- "name": "endYear",
641
- "description": "`endYear` {`number | undefined`} - \n\nProperty: endYear",
642
- "values": []
643
- },
644
- {
645
- "name": "showMonthDropdown",
646
- "description": "`showMonthDropdown` {`boolean`} - \n\nProperty: showMonthDropdown\n\nDefault: false",
647
- "valueSet": "v"
648
- },
649
- {
650
- "name": "showYearDropdown",
651
- "description": "`showYearDropdown` {`boolean`} - \n\nProperty: showYearDropdown\n\nDefault: false",
652
- "valueSet": "v"
653
- },
654
- {
655
- "name": "dateFormat",
656
- "description": "`dateFormat` {`string`} - \n\nProperty: dateFormat\n\nDefault: MM/DD/YYYY"
657
633
  }
658
634
  ]
659
635
  },
@@ -1716,7 +1692,7 @@
1716
1692
  },
1717
1693
  {
1718
1694
  "name": "nile-format-date",
1719
- "description": "Nile format-date component.\n\nAttributes:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the weekday.\n\n * `era` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"long\" | \"narrow\" | \"short\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `time-zone-name` {`\"long\" | \"short\"`} - The format for displaying the time.\n\n * `time-zone` {`string`} - The time zone to express the time in.\n\n * `hour-format` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `date-separator` {`\"-\" | \"/\"`} - The separator for the date format.\n\nProperties:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the weekday.\n\n * `era` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"long\" | \"narrow\" | \"short\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `timeZoneName` {`\"long\" | \"short\"`} - The format for displaying the time.\n\n * `timeZone` {`string`} - The time zone to express the time in.\n\n * `hourFormat` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `dateSeparator` {`\"-\" | \"/\"`} - The separator for the date format.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
1695
+ "description": "Nile format-date component.\n\nAttributes:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\n * `era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `time-zone-name` {`\"short\" | \"long\"`} - The format for displaying the time.\n\n * `time-zone` {`string`} - The time zone to express the time in.\n\n * `hour-format` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `date-separator` {`\"-\" | \"/\"`} - The separator for the date format.\n\nProperties:\n\n * `date` {`string | Date`} - The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly\nrecommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format\nin JavaScript, use [`date.toISOString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).\n\n * `weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\n * `era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\n * `year` {`\"numeric\" | \"2-digit\"`} - The format for displaying the year.\n\n * `month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\n * `day` {`\"numeric\" | \"2-digit\"`} - The format for displaying the day.\n\n * `hour` {`\"numeric\" | \"2-digit\"`} - The format for displaying the hour.\n\n * `minute` {`\"numeric\" | \"2-digit\"`} - The format for displaying the minute.\n\n * `second` {`\"numeric\" | \"2-digit\"`} - The format for displaying the second.\n\n * `timeZoneName` {`\"short\" | \"long\"`} - The format for displaying the time.\n\n * `timeZone` {`string`} - The time zone to express the time in.\n\n * `hourFormat` {`\"auto\" | \"12\" | \"24\"`} - The format for displaying the hour.\n\n * `dateSeparator` {`\"-\" | \"/\"`} - The separator for the date format.\n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
1720
1696
  "attributes": [
1721
1697
  {
1722
1698
  "name": "date",
@@ -1725,31 +1701,31 @@
1725
1701
  },
1726
1702
  {
1727
1703
  "name": "weekday",
1728
- "description": "`weekday` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the weekday.\n\nProperty: weekday",
1704
+ "description": "`weekday` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the weekday.\n\nProperty: weekday",
1729
1705
  "values": [
1730
- {
1731
- "name": "long"
1732
- },
1733
1706
  {
1734
1707
  "name": "narrow"
1735
1708
  },
1736
1709
  {
1737
1710
  "name": "short"
1711
+ },
1712
+ {
1713
+ "name": "long"
1738
1714
  }
1739
1715
  ]
1740
1716
  },
1741
1717
  {
1742
1718
  "name": "era",
1743
- "description": "`era` {`\"long\" | \"narrow\" | \"short\"`} - The format for displaying the era.\n\nProperty: era",
1719
+ "description": "`era` {`\"narrow\" | \"short\" | \"long\"`} - The format for displaying the era.\n\nProperty: era",
1744
1720
  "values": [
1745
- {
1746
- "name": "long"
1747
- },
1748
1721
  {
1749
1722
  "name": "narrow"
1750
1723
  },
1751
1724
  {
1752
1725
  "name": "short"
1726
+ },
1727
+ {
1728
+ "name": "long"
1753
1729
  }
1754
1730
  ]
1755
1731
  },
@@ -1767,17 +1743,17 @@
1767
1743
  },
1768
1744
  {
1769
1745
  "name": "month",
1770
- "description": "`month` {`\"long\" | \"narrow\" | \"short\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\nProperty: month",
1746
+ "description": "`month` {`\"narrow\" | \"short\" | \"long\" | \"numeric\" | \"2-digit\"`} - The format for displaying the month.\n\nProperty: month",
1771
1747
  "values": [
1772
- {
1773
- "name": "long"
1774
- },
1775
1748
  {
1776
1749
  "name": "narrow"
1777
1750
  },
1778
1751
  {
1779
1752
  "name": "short"
1780
1753
  },
1754
+ {
1755
+ "name": "long"
1756
+ },
1781
1757
  {
1782
1758
  "name": "numeric"
1783
1759
  },
@@ -1836,13 +1812,13 @@
1836
1812
  },
1837
1813
  {
1838
1814
  "name": "time-zone-name",
1839
- "description": "`time-zone-name` {`\"long\" | \"short\"`} - The format for displaying the time.\n\nProperty: timeZoneName",
1815
+ "description": "`time-zone-name` {`\"short\" | \"long\"`} - The format for displaying the time.\n\nProperty: timeZoneName",
1840
1816
  "values": [
1841
1817
  {
1842
- "name": "long"
1818
+ "name": "short"
1843
1819
  },
1844
1820
  {
1845
- "name": "short"
1821
+ "name": "long"
1846
1822
  }
1847
1823
  ]
1848
1824
  },