@ember-eui/pikaday 9.0.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/-private/random-id.d.ts +9 -0
- package/declarations/-private/random-id.d.ts.map +1 -0
- package/declarations/components/eui-pikaday.d.ts +58 -0
- package/declarations/components/eui-pikaday.d.ts.map +1 -0
- package/declarations/core/src/components/eui-accordion.d.ts +1 -1
- package/declarations/core/src/components/eui-accordion.d.ts.map +1 -1
- package/declarations/core/src/components/eui-avatar.d.ts +1 -1
- package/declarations/core/src/components/eui-avatar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-badge-group.d.ts +1 -1
- package/declarations/core/src/components/eui-badge-group.d.ts.map +1 -1
- package/declarations/core/src/components/eui-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-beta-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-beta-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-breadcrumbs.d.ts +1 -1
- package/declarations/core/src/components/eui-breadcrumbs.d.ts.map +1 -1
- package/declarations/core/src/components/eui-button-empty.d.ts +1 -1
- package/declarations/core/src/components/eui-button-empty.d.ts.map +1 -1
- package/declarations/core/src/components/eui-button-icon.d.ts +1 -1
- package/declarations/core/src/components/eui-button-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-call-out.d.ts +1 -1
- package/declarations/core/src/components/eui-call-out.d.ts.map +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts.map +1 -1
- package/declarations/core/src/components/eui-code.d.ts +1 -1
- package/declarations/core/src/components/eui-code.d.ts.map +1 -1
- package/declarations/core/src/components/eui-collapsible-nav.d.ts +1 -1
- package/declarations/core/src/components/eui-collapsible-nav.d.ts.map +1 -1
- package/declarations/core/src/components/eui-comment-timeline.d.ts +1 -1
- package/declarations/core/src/components/eui-comment-timeline.d.ts.map +1 -1
- package/declarations/core/src/components/eui-context-menu-item.d.ts +1 -1
- package/declarations/core/src/components/eui-context-menu-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-description-list.d.ts +1 -1
- package/declarations/core/src/components/eui-description-list.d.ts.map +1 -1
- package/declarations/core/src/components/eui-field-number.d.ts +1 -1
- package/declarations/core/src/components/eui-field-number.d.ts.map +1 -1
- package/declarations/core/src/components/eui-file-picker.d.ts +1 -1
- package/declarations/core/src/components/eui-file-picker.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-grid.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-grid.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-group.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-group.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flex-item.d.ts +1 -1
- package/declarations/core/src/components/eui-flex-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-flyout.d.ts +1 -1
- package/declarations/core/src/components/eui-flyout.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts +2 -2
- package/declarations/core/src/components/eui-form-control-layout-clear-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts +2 -2
- package/declarations/core/src/components/eui-form-control-layout-custom-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-form-row.d.ts +1 -1
- package/declarations/core/src/components/eui-form-row.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-links.d.ts +2 -2
- package/declarations/core/src/components/eui-header-links.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section-item-button.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section-item-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section-item.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-header-section.d.ts +1 -1
- package/declarations/core/src/components/eui-header-section.d.ts.map +1 -1
- package/declarations/core/src/components/eui-health.d.ts +1 -1
- package/declarations/core/src/components/eui-health.d.ts.map +1 -1
- package/declarations/core/src/components/eui-hide-for.d.ts +1 -1
- package/declarations/core/src/components/eui-hide-for.d.ts.map +1 -1
- package/declarations/core/src/components/eui-horizontal-rule.d.ts +1 -1
- package/declarations/core/src/components/eui-horizontal-rule.d.ts.map +1 -1
- package/declarations/core/src/components/eui-i18n.d.ts +1 -1
- package/declarations/core/src/components/eui-icon.d.ts +3 -3
- package/declarations/core/src/components/eui-icon.d.ts.map +1 -1
- package/declarations/core/src/components/eui-image.d.ts +1 -1
- package/declarations/core/src/components/eui-image.d.ts.map +1 -1
- package/declarations/core/src/components/eui-list-group-item.d.ts +1 -1
- package/declarations/core/src/components/eui-list-group-item.d.ts.map +1 -1
- package/declarations/core/src/components/eui-loading-spinner.d.ts +1 -1
- package/declarations/core/src/components/eui-loading-spinner.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts +7 -2
- package/declarations/core/src/components/eui-markdown-editor-toolbar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-editor.d.ts +2 -2
- package/declarations/core/src/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-format.d.ts +3 -3
- package/declarations/core/src/components/eui-markdown-format.d.ts.map +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-content-body.d.ts +1 -1
- package/declarations/core/src/components/eui-page-content-body.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-header-content.d.ts +2 -2
- package/declarations/core/src/components/eui-page-header-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-header.d.ts +1 -1
- package/declarations/core/src/components/eui-page-header.d.ts.map +1 -1
- package/declarations/core/src/components/eui-page-side-bar.d.ts +1 -1
- package/declarations/core/src/components/eui-page-side-bar.d.ts.map +1 -1
- package/declarations/core/src/components/eui-pagination-button.d.ts +1 -1
- package/declarations/core/src/components/eui-pagination-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-panel.d.ts +1 -1
- package/declarations/core/src/components/eui-panel.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover-footer.d.ts +1 -1
- package/declarations/core/src/components/eui-popover-footer.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover-title.d.ts +1 -1
- package/declarations/core/src/components/eui-popover-title.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover.d.ts +2 -2
- package/declarations/core/src/components/eui-popover.d.ts.map +1 -1
- package/declarations/core/src/components/eui-progress.d.ts +1 -1
- package/declarations/core/src/components/eui-progress.d.ts.map +1 -1
- package/declarations/core/src/components/eui-range-slider.d.ts +1 -1
- package/declarations/core/src/components/eui-range-slider.d.ts.map +1 -1
- package/declarations/core/src/components/eui-range-track.d.ts +1 -1
- package/declarations/core/src/components/eui-show-for.d.ts +1 -1
- package/declarations/core/src/components/eui-show-for.d.ts.map +1 -1
- package/declarations/core/src/components/eui-side-nav.d.ts +1 -1
- package/declarations/core/src/components/eui-side-nav.d.ts.map +1 -1
- package/declarations/core/src/components/eui-spacer.d.ts +1 -1
- package/declarations/core/src/components/eui-spacer.d.ts.map +1 -1
- package/declarations/core/src/components/eui-stat.d.ts +2 -2
- package/declarations/core/src/components/eui-stat.d.ts.map +1 -1
- package/declarations/core/src/components/eui-step-number.d.ts +1 -1
- package/declarations/core/src/components/eui-step-number.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/relative-tab.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker.d.ts +1 -1
- package/declarations/core/src/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tabbed-content.d.ts +1 -1
- package/declarations/core/src/components/eui-tabbed-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tabs.d.ts +1 -1
- package/declarations/core/src/components/eui-tabs.d.ts.map +1 -1
- package/declarations/core/src/components/eui-text-area.d.ts +1 -1
- package/declarations/core/src/components/eui-text-area.d.ts.map +1 -1
- package/declarations/core/src/components/eui-text.d.ts +3 -3
- package/declarations/core/src/components/eui-text.d.ts.map +1 -1
- package/declarations/core/src/components/eui-title.d.ts +1 -1
- package/declarations/core/src/components/eui-title.d.ts.map +1 -1
- package/declarations/core/src/components/eui-tool-tip-popover.d.ts +1 -1
- package/declarations/core/src/components/eui-tool-tip-popover.d.ts.map +1 -1
- package/declarations/core/src/components.d.ts +148 -148
- package/declarations/core/src/components.d.ts.map +1 -1
- package/declarations/core/src/helpers/class-names.d.ts +1 -1
- package/declarations/core/src/helpers/class-names.d.ts.map +1 -1
- package/declarations/core/src/helpers/get-range-tick.d.ts +1 -1
- package/declarations/core/src/helpers/get-range-tick.d.ts.map +1 -1
- package/declarations/core/src/helpers.d.ts +7 -7
- package/declarations/core/src/helpers.d.ts.map +1 -1
- package/declarations/core/src/i18n/util.d.ts.map +1 -1
- package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts +1 -1
- package/declarations/core/src/modifiers/use-is-within-breakpoints.d.ts.map +1 -1
- package/declarations/core/src/utils/accesibility/index.d.ts +3 -3
- package/declarations/core/src/utils/accesibility/index.d.ts.map +1 -1
- package/declarations/core/src/utils/browser/index.d.ts +1 -1
- package/declarations/core/src/utils/browser/index.d.ts.map +1 -1
- package/declarations/core/src/utils/code/utils.d.ts +1 -1
- package/declarations/core/src/utils/code/utils.d.ts.map +1 -1
- package/declarations/core/src/utils/color/index.d.ts +5 -5
- package/declarations/core/src/utils/color/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/markdown-actions.d.ts +3 -3
- package/declarations/core/src/utils/markdown/markdown-actions.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-checkbox/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts +4 -4
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +3 -3
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts +2 -2
- package/declarations/core/src/utils/markdown/plugins/markdown-tooltip/index.d.ts.map +1 -1
- package/declarations/core/src/utils/number/index.d.ts +1 -1
- package/declarations/core/src/utils/number/index.d.ts.map +1 -1
- package/declarations/core/src/utils/predicate/index.d.ts +2 -2
- package/declarations/core/src/utils/predicate/index.d.ts.map +1 -1
- package/dist/components/eui-pikaday.js +80 -207
- package/dist/components/eui-pikaday.js.map +1 -1
- package/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-within-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../core/src/modifiers/use-is-within-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-is-within-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../core/src/modifiers/use-is-within-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,2BAA2B,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;;;;;;;;AAED,wBAoBG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accessibleClickKeys } from './accessible-click-keys';
|
|
2
|
-
export { cascadingMenuKeys } from './cascading-menu-keys';
|
|
3
|
-
export { comboBoxKeys } from './combo-box-keys';
|
|
1
|
+
export { accessibleClickKeys } from './accessible-click-keys.ts';
|
|
2
|
+
export { cascadingMenuKeys } from './cascading-menu-keys.ts';
|
|
3
|
+
export { comboBoxKeys } from './combo-box-keys.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/accesibility/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/accesibility/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Browser } from './browser';
|
|
1
|
+
export { Browser } from './browser.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/browser/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/browser/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/code/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/code/utils.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAEpD;;GAEG;AAEH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAkB,CAAC;AACnD,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAEzD,CAAC;AAiBF,MAAM,WAAW,gBAAgB;CAAG;AAEpC,eAAO,MAAM,cAAc,UAAW,aAAa,EAAE;;;CAqGpD,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,aAAa,wBAEG,CAAC;AAWpD,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,eAAe,WAAY,MAAM,aAmB7C,CAAC;AAmIF,eAAO,MAAM,eAAe,aAChB,MAAM,YACN,MAAM,QACV,iBAAiB,oBAMxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { hexToRgb } from '../../helpers/hex-to-rgb';
|
|
2
|
-
export { isColorDark } from '../../helpers/is-color-dark';
|
|
3
|
-
export { isValidHex } from '../../helpers/is-valid-hex';
|
|
4
|
-
export { colorPalette } from './color_palette';
|
|
5
|
-
export { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm } from './eui_palettes';
|
|
1
|
+
export { hexToRgb } from '../../helpers/hex-to-rgb.ts';
|
|
2
|
+
export { isColorDark } from '../../helpers/is-color-dark.ts';
|
|
3
|
+
export { isValidHex } from '../../helpers/is-valid-hex.ts';
|
|
4
|
+
export { colorPalette } from './color_palette.ts';
|
|
5
|
+
export { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm } from './eui_palettes.ts';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/color/index.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/color/index.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,uBAAuB,EACvB,cAAc,EACd,2BAA2B,EAC3B,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACf,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EuiMarkdownEditorUiPlugin, EuiMarkdownFormatting } from './markdown-types';
|
|
1
|
+
import type { EuiMarkdownEditorUiPlugin, EuiMarkdownFormatting } from './markdown-types.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Class for applying styles to a text editor. Accepts the HTML ID for the textarea
|
|
4
4
|
* desired, and exposes the `.do(ACTION)` method for manipulating the text.
|
|
@@ -21,10 +21,10 @@ declare class MarkdownActions {
|
|
|
21
21
|
name: string;
|
|
22
22
|
button: {
|
|
23
23
|
label: string;
|
|
24
|
-
iconType: import("../../components/eui-icon").IconType;
|
|
24
|
+
iconType: import("../../components/eui-icon.ts").IconType;
|
|
25
25
|
};
|
|
26
26
|
helpText?: import("@glimmer/component").default<unknown> | undefined;
|
|
27
|
-
} & import("./markdown-types").PluginWithDelayedFormatting<any>) | undefined;
|
|
27
|
+
} & import("./markdown-types.ts").PluginWithDelayedFormatting<any>) | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Sets the default styling object and then superimposes the changes to make on top of
|
|
30
30
|
* it. Calls the `styleSelectedText` helper function that does the heavy lifting.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-actions.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/markdown/markdown-actions.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"markdown-actions.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/markdown/markdown-actions.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;GAMG;AACH,cAAM,eAAe;IACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAM;gBAEV,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,yBAAyB,EAAE;IA4FpE;;;;;;OAMG;IACH,EAAE,CAAC,UAAU,EAAE,MAAM;;;;;;;;IAYrB;;;;;;;OAOG;IACH,UAAU,CAAC,aAAa,EAAE,qBAAqB;CA4BhD;AAaD,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqDD,wBAAgB,UAAU,CACxB,QAAQ,EAAE,mBAAmB,EAC7B,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,cAAc,QAmDvD;AA0UD,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RehypeNode } from '../../markdown-types';
|
|
1
|
+
import type { RehypeNode } from '../../markdown-types.ts';
|
|
2
2
|
type Visitor = (node: RehypeNode) => RehypeNode;
|
|
3
3
|
export declare const visit: (node: RehypeNode, visitor: Visitor) => RehypeNode;
|
|
4
4
|
export declare const processor: () => (tree: RehypeNode) => void;
|
package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/processor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-add-components/processor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAC;AAEhD,eAAO,MAAM,KAAK,SAAU,UAAU,WAAW,OAAO,eAmBvD,CAAC;AAEF,eAAO,MAAM,SAAS,eACd,UAAU,KACb,IAuDJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CheckboxParser as parser } from './parser';
|
|
1
|
+
export { CheckboxParser as parser } from './parser.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-checkbox/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-checkbox/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './parsing-plugins';
|
|
2
|
-
export * from './plugins';
|
|
3
|
-
export * from './processing-plugins';
|
|
4
|
-
export * from './ui-plugins';
|
|
1
|
+
export * from './parsing-plugins.ts';
|
|
2
|
+
export * from './plugins.ts';
|
|
3
|
+
export * from './processing-plugins.ts';
|
|
4
|
+
export * from './ui-plugins.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/index.ts"],"names":[],"mappings":"AAQA,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DefaultEuiMarkdownParsingPlugins } from './parsing-plugins';
|
|
2
|
-
import type { DefaultEuiMarkdownProcessingPlugins } from './processing-plugins';
|
|
3
|
-
import type { DefaultEuiMarkdownUiPlugins } from './ui-plugins';
|
|
1
|
+
import type { DefaultEuiMarkdownParsingPlugins } from './parsing-plugins.ts';
|
|
2
|
+
import type { DefaultEuiMarkdownProcessingPlugins } from './processing-plugins.ts';
|
|
3
|
+
import type { DefaultEuiMarkdownUiPlugins } from './ui-plugins.ts';
|
|
4
4
|
export declare const getDefaultEuiMarkdownPlugins: (config: undefined | {
|
|
5
5
|
exclude?: 'tooltip'[];
|
|
6
6
|
}) => {
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/plugins.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/plugins.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,4BAA4B,WAC/B,SAAS,GAAG;IAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,KAC5C;IACD,cAAc,EAAE,gCAAgC,CAAC;IACjD,iBAAiB,EAAE,mCAAmC,CAAC;IACvD,SAAS,EAAE,2BAA2B,CAAC;CAKvC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import remark2Rehype from 'remark-rehype';
|
|
2
|
-
import * as MarkdownAddComponents from '../markdown-add-components';
|
|
2
|
+
import * as MarkdownAddComponents from '../markdown-add-components/index.ts';
|
|
3
3
|
import type { Options as Remark2RehypeOptions } from 'mdast-util-to-hast';
|
|
4
4
|
import type { PluggableList } from 'unified';
|
|
5
5
|
export interface Rehype2ReactOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processing-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts"],"names":[],"mappings":"AAwBA,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,qBAAqB,MAAM,
|
|
1
|
+
{"version":3,"file":"processing-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts"],"names":[],"mappings":"AAwBA,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,qBAAqB,MAAM,qCAAqC,CAAC;AAE7E,OAAO,KAAK,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD;QAAC,OAAO,aAAa;QAAE,oBAAoB;KAAC;IAC5C;QAAC,OAAO,qBAAqB,CAAC,SAAS;QAAE,mBAAmB;KAAC;IAC7D,GAAG,aAAa;CACjB,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,GAWpD,CAAC;AAEF,eAAO,MAAM,wBAAwB,KACK,CAAC"}
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EuiMarkdownEditorUiPlugin } from '../../markdown-types';
|
|
1
|
+
import type { EuiMarkdownEditorUiPlugin } from '../../markdown-types.ts';
|
|
2
2
|
export type DefaultEuiMarkdownUiPlugins = EuiMarkdownEditorUiPlugin[];
|
|
3
3
|
export declare const getDefaultEuiMarkdownUiPlugins: ({ exclude }?: {
|
|
4
4
|
exclude?: "tooltip"[] | undefined;
|
package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ui-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,MAAM,2BAA2B,GAAG,yBAAyB,EAAE,CAAC;AAEtE,eAAO,MAAM,8BAA8B;;iCAa1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAAmC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TooltipParser as parser } from './parser';
|
|
2
|
-
export { tooltipPlugin as plugin } from './plugin';
|
|
1
|
+
export { TooltipParser as parser } from './parser.ts';
|
|
2
|
+
export { tooltipPlugin as plugin } from './plugin.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/utils/markdown/plugins/markdown-tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './number';
|
|
1
|
+
export * from './number.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/number/index.ts"],"names":[],"mappings":"AAmBA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/number/index.ts"],"names":[],"mappings":"AAmBA,cAAc,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './common_predicates';
|
|
2
|
-
export * from './lodash_predicates';
|
|
1
|
+
export * from './common_predicates.ts';
|
|
2
|
+
export * from './lodash_predicates.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/predicate/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/predicate/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,187 +1,21 @@
|
|
|
1
|
-
import { setComponentTemplate } from '@ember/component';
|
|
2
|
-
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
1
|
import Component from '@glimmer/component';
|
|
4
|
-
import { fn } from '@ember/helper';
|
|
5
|
-
import { on } from '@ember/modifier';
|
|
6
2
|
import { action } from '@ember/object';
|
|
7
|
-
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
8
|
-
import { EuiFieldText } from '@ember-eui/core/components';
|
|
9
|
-
import { argOrDefault } from '@ember-eui/core/helpers';
|
|
10
|
-
import optional from 'ember-composable-helpers/helpers/optional';
|
|
11
3
|
import pikaday from 'ember-pikaday-prysmex/modifiers/pikaday';
|
|
4
|
+
import { n } from 'decorator-transforms/runtime';
|
|
12
5
|
import { and, not } from 'ember-truth-helpers';
|
|
6
|
+
import { argOrDefault } from '@ember-eui/core/helpers';
|
|
13
7
|
import randomId from '../-private/random-id.js';
|
|
8
|
+
import { EuiFieldText } from '@ember-eui/core/components';
|
|
9
|
+
import { fn } from '@ember/helper';
|
|
10
|
+
import optional from 'ember-composable-helpers/helpers/optional';
|
|
11
|
+
import { on } from '@ember/modifier';
|
|
12
|
+
import didInsert from '@ember/render-modifiers/modifiers/did-insert';
|
|
13
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
14
|
+
import { setComponentTemplate } from '@ember/component';
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (void 0 !== e) {
|
|
19
|
-
var i = e.call(t, r || "default");
|
|
20
|
-
if ("object" != typeof i) return i;
|
|
21
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
22
|
-
}
|
|
23
|
-
return ("string" === r ? String : Number)(t);
|
|
24
|
-
}
|
|
25
|
-
function _toPropertyKey(t) {
|
|
26
|
-
var i = _toPrimitive(t, "string");
|
|
27
|
-
return "symbol" == typeof i ? i : String(i);
|
|
28
|
-
}
|
|
29
|
-
function _defineProperty(obj, key, value) {
|
|
30
|
-
key = _toPropertyKey(key);
|
|
31
|
-
if (key in obj) {
|
|
32
|
-
Object.defineProperty(obj, key, {
|
|
33
|
-
value: value,
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
|
|
44
|
-
var desc = {};
|
|
45
|
-
Object.keys(descriptor).forEach(function (key) {
|
|
46
|
-
desc[key] = descriptor[key];
|
|
47
|
-
});
|
|
48
|
-
desc.enumerable = !!desc.enumerable;
|
|
49
|
-
desc.configurable = !!desc.configurable;
|
|
50
|
-
if ('value' in desc || desc.initializer) {
|
|
51
|
-
desc.writable = true;
|
|
52
|
-
}
|
|
53
|
-
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
54
|
-
return decorator(target, property, desc) || desc;
|
|
55
|
-
}, desc);
|
|
56
|
-
if (context && desc.initializer !== void 0) {
|
|
57
|
-
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
58
|
-
desc.initializer = undefined;
|
|
59
|
-
}
|
|
60
|
-
if (desc.initializer === void 0) {
|
|
61
|
-
Object.defineProperty(target, property, desc);
|
|
62
|
-
desc = null;
|
|
63
|
-
}
|
|
64
|
-
return desc;
|
|
65
|
-
}
|
|
66
|
-
function _classPrivateFieldGet(receiver, privateMap) {
|
|
67
|
-
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
68
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
69
|
-
}
|
|
70
|
-
function _classPrivateFieldSet(receiver, privateMap, value) {
|
|
71
|
-
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set");
|
|
72
|
-
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
76
|
-
if (!privateMap.has(receiver)) {
|
|
77
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
78
|
-
}
|
|
79
|
-
return privateMap.get(receiver);
|
|
80
|
-
}
|
|
81
|
-
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
82
|
-
if (descriptor.get) {
|
|
83
|
-
return descriptor.get.call(receiver);
|
|
84
|
-
}
|
|
85
|
-
return descriptor.value;
|
|
86
|
-
}
|
|
87
|
-
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
88
|
-
if (descriptor.set) {
|
|
89
|
-
descriptor.set.call(receiver, value);
|
|
90
|
-
} else {
|
|
91
|
-
if (!descriptor.writable) {
|
|
92
|
-
throw new TypeError("attempted to set read only private field");
|
|
93
|
-
}
|
|
94
|
-
descriptor.value = value;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
98
|
-
if (privateCollection.has(obj)) {
|
|
99
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
103
|
-
_checkPrivateRedeclaration(obj, privateMap);
|
|
104
|
-
privateMap.set(obj, value);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
var _class, _heardValue;
|
|
108
|
-
let EuiPikadayComponent = setComponentTemplate(precompileTemplate(`
|
|
109
|
-
{{#let
|
|
110
|
-
(and (not (argOrDefault @isFakePrependBlock false)) (has-block "prepend"))
|
|
111
|
-
(and (not (argOrDefault @isFakeAppendBlock false)) (has-block "append"))
|
|
112
|
-
(argOrDefault @id (randomId))
|
|
113
|
-
as |hasPrepend hasAppend inputId|
|
|
114
|
-
}}
|
|
115
|
-
<EuiFieldText
|
|
116
|
-
@icon={{if @icon @icon "calendar"}}
|
|
117
|
-
@fullWidth={{@fullWidth}}
|
|
118
|
-
@isLoading={{@isLoading}}
|
|
119
|
-
@readOnly={{@readOnly}}
|
|
120
|
-
@inputRef={{@inputRef}}
|
|
121
|
-
@controlOnly={{@controlOnly}}
|
|
122
|
-
@compressed={{@compressed}}
|
|
123
|
-
@id={{inputId}}
|
|
124
|
-
@clear={{if @clear (fn (optional @clear) null)}}
|
|
125
|
-
@isFakePrependBlock={{hasPrepend}}
|
|
126
|
-
@isFakeAppendBlock={{hasAppend}}
|
|
127
|
-
@disabled={{@disabled}}
|
|
128
|
-
@isInvalid={{@isInvalid}}
|
|
129
|
-
...attributes
|
|
130
|
-
{{pikaday
|
|
131
|
-
value=this.value
|
|
132
|
-
onSelect=this.onSelect
|
|
133
|
-
setDefaultDate=true
|
|
134
|
-
defaultDate=@defaultDate
|
|
135
|
-
onOpen=this.onOpen
|
|
136
|
-
onDraw=this.onDraw
|
|
137
|
-
onClose=this.onClose
|
|
138
|
-
format=this.format
|
|
139
|
-
minDate=@minDate
|
|
140
|
-
maxDate=@maxDate
|
|
141
|
-
theme=@theme
|
|
142
|
-
yearRange=this.yearRange
|
|
143
|
-
i18n=this.i18n
|
|
144
|
-
firstDay=this.firstDay
|
|
145
|
-
container=@container
|
|
146
|
-
bound=@bound
|
|
147
|
-
register=this.registerPikaday
|
|
148
|
-
moment=@moment
|
|
149
|
-
}}
|
|
150
|
-
{{on "change" this.didChange}}
|
|
151
|
-
{{didInsert this.registerField}}
|
|
152
|
-
>
|
|
153
|
-
<:prepend as |classes inputId|>
|
|
154
|
-
{{yield classes inputId to="prepend"}}
|
|
155
|
-
</:prepend>
|
|
156
|
-
<:append as |classes inputId|>
|
|
157
|
-
{{yield classes inputId to="append"}}
|
|
158
|
-
</:append>
|
|
159
|
-
</EuiFieldText>
|
|
160
|
-
{{/let}}
|
|
161
|
-
`, {
|
|
162
|
-
strictMode: true,
|
|
163
|
-
scope: () => ({
|
|
164
|
-
and,
|
|
165
|
-
not,
|
|
166
|
-
argOrDefault,
|
|
167
|
-
randomId,
|
|
168
|
-
EuiFieldText,
|
|
169
|
-
fn,
|
|
170
|
-
optional,
|
|
171
|
-
pikaday,
|
|
172
|
-
on,
|
|
173
|
-
didInsert
|
|
174
|
-
})
|
|
175
|
-
}), (_class = (_heardValue = /*#__PURE__*/new WeakMap(), class EuiPikadayComponent extends Component {
|
|
176
|
-
constructor(...args) {
|
|
177
|
-
super(...args);
|
|
178
|
-
_defineProperty(this, "field", null);
|
|
179
|
-
_defineProperty(this, "pikaday", void 0);
|
|
180
|
-
_classPrivateFieldInitSpec(this, _heardValue, {
|
|
181
|
-
writable: true,
|
|
182
|
-
value: void 0
|
|
183
|
-
});
|
|
184
|
-
}
|
|
16
|
+
class EuiPikadayComponent extends Component {
|
|
17
|
+
field = null;
|
|
18
|
+
pikaday;
|
|
185
19
|
get format() {
|
|
186
20
|
return this.args.format || 'DD.MM.YYYY';
|
|
187
21
|
}
|
|
@@ -189,74 +23,113 @@ let EuiPikadayComponent = setComponentTemplate(precompileTemplate(`
|
|
|
189
23
|
return this.args.value;
|
|
190
24
|
}
|
|
191
25
|
get yearRange() {
|
|
192
|
-
const
|
|
193
|
-
if (!
|
|
26
|
+
const yearRange1 = this.args.yearRange;
|
|
27
|
+
if (!yearRange1) {
|
|
194
28
|
return 10;
|
|
195
29
|
}
|
|
196
|
-
if (
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
|
|
30
|
+
if (yearRange1.indexOf(',') > -1) {
|
|
31
|
+
const yearArray1 = yearRange1.split(',');
|
|
32
|
+
if (yearArray1[1] === 'currentYear') {
|
|
33
|
+
yearArray1[1] = new Date().getFullYear();
|
|
200
34
|
}
|
|
201
|
-
return
|
|
35
|
+
return yearArray1;
|
|
202
36
|
} else {
|
|
203
|
-
return
|
|
37
|
+
return yearRange1;
|
|
204
38
|
}
|
|
205
39
|
}
|
|
206
40
|
get i18n() {
|
|
207
|
-
let
|
|
208
|
-
if (!
|
|
41
|
+
let i18n1 = this.args.i18n;
|
|
42
|
+
if (!i18n1) {
|
|
209
43
|
return undefined;
|
|
210
44
|
}
|
|
211
|
-
if (!
|
|
212
|
-
return
|
|
45
|
+
if (!i18n1.t) {
|
|
46
|
+
return i18n1;
|
|
213
47
|
}
|
|
214
48
|
return {
|
|
215
|
-
previousMonth:
|
|
216
|
-
nextMonth:
|
|
217
|
-
months:
|
|
218
|
-
weekdays:
|
|
219
|
-
weekdaysShort:
|
|
49
|
+
previousMonth: i18n1.t('previousMonth').toString(),
|
|
50
|
+
nextMonth: i18n1.t('nextMonth').toString(),
|
|
51
|
+
months: i18n1.t('months').toString().split(','),
|
|
52
|
+
weekdays: i18n1.t('weekdays').toString().split(','),
|
|
53
|
+
weekdaysShort: i18n1.t('weekdaysShort').toString().split(',')
|
|
220
54
|
};
|
|
221
55
|
}
|
|
222
56
|
get firstDay() {
|
|
223
57
|
return this.args.firstDay == null ? 1 : parseInt(this.args.firstDay, 10);
|
|
224
58
|
}
|
|
225
|
-
registerField(
|
|
226
|
-
this.field =
|
|
59
|
+
registerField(field1) {
|
|
60
|
+
this.field = field1;
|
|
61
|
+
}
|
|
62
|
+
static {
|
|
63
|
+
n(this.prototype, "registerField", [action]);
|
|
227
64
|
}
|
|
228
|
-
registerPikaday(
|
|
229
|
-
this.pikaday =
|
|
230
|
-
this.args.register?.(
|
|
65
|
+
registerPikaday(pikaday1) {
|
|
66
|
+
this.pikaday = pikaday1;
|
|
67
|
+
this.args.register?.(pikaday1);
|
|
68
|
+
}
|
|
69
|
+
static {
|
|
70
|
+
n(this.prototype, "registerPikaday", [action]);
|
|
231
71
|
}
|
|
232
72
|
onClose() {
|
|
233
73
|
if (this.isDestroying) {
|
|
234
74
|
return;
|
|
235
75
|
}
|
|
236
|
-
if (!
|
|
76
|
+
if (!this.#heardValue) {
|
|
237
77
|
this.onSelect(null);
|
|
238
78
|
}
|
|
239
79
|
this.args.onClose?.();
|
|
240
80
|
}
|
|
81
|
+
static {
|
|
82
|
+
n(this.prototype, "onClose", [action]);
|
|
83
|
+
}
|
|
241
84
|
onOpen() {
|
|
242
85
|
if (this.isDestroying) {
|
|
243
86
|
return;
|
|
244
87
|
}
|
|
245
88
|
this.args.onOpen?.();
|
|
246
89
|
}
|
|
90
|
+
static {
|
|
91
|
+
n(this.prototype, "onOpen", [action]);
|
|
92
|
+
}
|
|
93
|
+
#heardValue;
|
|
247
94
|
onDraw() {
|
|
248
95
|
// this is here because apparently the classic behavior is to pass no
|
|
249
96
|
// arguments to the onDraw callback, but Pikaday's own ownDraw has an
|
|
250
97
|
// argument.
|
|
251
98
|
this.args.onDraw?.();
|
|
252
99
|
}
|
|
253
|
-
|
|
254
|
-
|
|
100
|
+
static {
|
|
101
|
+
n(this.prototype, "onDraw", [action]);
|
|
102
|
+
}
|
|
103
|
+
didChange(event1) {
|
|
104
|
+
this.#heardValue = event1.target.value;
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
n(this.prototype, "didChange", [action]);
|
|
108
|
+
}
|
|
109
|
+
onSelect(date1) {
|
|
110
|
+
this.args.onSelection?.(date1);
|
|
111
|
+
}
|
|
112
|
+
static {
|
|
113
|
+
n(this.prototype, "onSelect", [action]);
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
setComponentTemplate(precompileTemplate("\n {{#let (and (not (argOrDefault @isFakePrependBlock false)) (has-block \"prepend\")) (and (not (argOrDefault @isFakeAppendBlock false)) (has-block \"append\")) (argOrDefault @id (randomId)) as |hasPrepend hasAppend inputId|}}\n <EuiFieldText @icon={{if @icon @icon \"calendar\"}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @readOnly={{@readOnly}} @inputRef={{@inputRef}} @controlOnly={{@controlOnly}} @compressed={{@compressed}} @id={{inputId}} @clear={{if @clear (fn (optional @clear) null)}} @isFakePrependBlock={{hasPrepend}} @isFakeAppendBlock={{hasAppend}} @disabled={{@disabled}} @isInvalid={{@isInvalid}} ...attributes {{pikaday value=this.value onSelect=this.onSelect setDefaultDate=true defaultDate=@defaultDate onOpen=this.onOpen onDraw=this.onDraw onClose=this.onClose format=this.format minDate=@minDate maxDate=@maxDate theme=@theme yearRange=this.yearRange i18n=this.i18n firstDay=this.firstDay container=@container bound=@bound register=this.registerPikaday moment=@moment}} {{on \"change\" this.didChange}} {{didInsert this.registerField}}>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldText>\n {{/let}}\n ", {
|
|
117
|
+
scope: () => ({
|
|
118
|
+
and,
|
|
119
|
+
not,
|
|
120
|
+
argOrDefault,
|
|
121
|
+
randomId,
|
|
122
|
+
EuiFieldText,
|
|
123
|
+
fn,
|
|
124
|
+
optional,
|
|
125
|
+
pikaday,
|
|
126
|
+
on,
|
|
127
|
+
didInsert
|
|
128
|
+
}),
|
|
129
|
+
strictMode: true
|
|
130
|
+
}), this);
|
|
255
131
|
}
|
|
256
|
-
|
|
257
|
-
this.args.onSelection?.(date);
|
|
258
|
-
}
|
|
259
|
-
}), (_applyDecoratedDescriptor(_class.prototype, "registerField", [action], Object.getOwnPropertyDescriptor(_class.prototype, "registerField"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "registerPikaday", [action], Object.getOwnPropertyDescriptor(_class.prototype, "registerPikaday"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "onClose", [action], Object.getOwnPropertyDescriptor(_class.prototype, "onClose"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "onOpen", [action], Object.getOwnPropertyDescriptor(_class.prototype, "onOpen"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "onDraw", [action], Object.getOwnPropertyDescriptor(_class.prototype, "onDraw"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "didChange", [action], Object.getOwnPropertyDescriptor(_class.prototype, "didChange"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "onSelect", [action], Object.getOwnPropertyDescriptor(_class.prototype, "onSelect"), _class.prototype)), _class));
|
|
132
|
+
}
|
|
260
133
|
|
|
261
134
|
export { EuiPikadayComponent as default };
|
|
262
135
|
//# sourceMappingURL=eui-pikaday.js.map
|