@aquera/nile-elements 0.0.2 → 0.0.3-10
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +3 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +3 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.d.ts +2 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js +5 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js +25 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.css.js +9 -11
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.d.ts +3 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.js +32 -8
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js +178 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.d.ts +70 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js +494 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.js +33 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.d.ts +31 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.js +44 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.js +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/index.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.d.ts +12 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.js +31 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.css.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.d.ts +31 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.js +44 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/aquera.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/aquera.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/aquera.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/block.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/block.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/block.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/button-loading-blue-animated.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/button-loading-blue-animated.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/button-loading-blue-animated.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/color.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/color.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/color.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/firewallagent.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/firewallagent.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/firewallagent.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/handtool.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/handtool.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/handtool.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.d.ts +11 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.js +11 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/log-info.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/log-info.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/log-info.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/process.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/process.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/process.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/section.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/section.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/section.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/text.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/text.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/text.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/virtualservergroup.d.ts +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/virtualservergroup.js +5 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon/icons/svg/virtualservergroup.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js +21 -8
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js +18 -24
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-input/nile-input.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.css.js +0 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.js +2 -2
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.css.js +11 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.d.ts +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.js +23 -9
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.css.js +8 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.d.ts +2 -3
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js +24 -20
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.css.js +73 -20
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.d.ts +10 -3
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js +105 -42
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +7 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +2 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.js +23 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js +68 -41
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.d.ts +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js +9 -6
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js +15 -10
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js +15 -18
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/demo/filenames.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +745 -304
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.css.esm.js +5 -1
- package/dist/nile-checkbox/nile-checkbox.esm.js +15 -5
- package/dist/nile-chip/nile-chip.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.css.cjs.js.map +1 -1
- package/dist/nile-chip/nile-chip.css.esm.js +9 -11
- package/dist/nile-chip/nile-chip.esm.js +17 -7
- package/dist/nile-date-picker/index.cjs.js +2 -0
- package/dist/nile-date-picker/index.cjs.js.map +1 -0
- package/dist/nile-date-picker/index.esm.js +1 -0
- package/dist/nile-date-picker/nile-date-picker.cjs.js +2 -0
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -0
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js +2 -0
- package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -0
- package/dist/nile-date-picker/nile-date-picker.css.esm.js +166 -0
- package/dist/nile-date-picker/nile-date-picker.esm.js +85 -0
- package/dist/nile-form-error-message/index.cjs.js +2 -0
- package/dist/nile-form-error-message/index.cjs.js.map +1 -0
- package/dist/nile-form-error-message/index.esm.js +1 -0
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js +2 -0
- package/dist/nile-form-error-message/nile-form-error-message.cjs.js.map +1 -0
- package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js +2 -0
- package/dist/nile-form-error-message/nile-form-error-message.css.cjs.js.map +1 -0
- package/dist/nile-form-error-message/nile-form-error-message.css.esm.js +21 -0
- package/dist/nile-form-error-message/nile-form-error-message.esm.js +5 -0
- package/dist/nile-form-help-text/index.cjs.js +2 -0
- package/dist/nile-form-help-text/index.cjs.js.map +1 -0
- package/dist/nile-form-help-text/index.esm.js +1 -0
- package/dist/nile-form-help-text/nile-form-help-text.cjs.js +2 -0
- package/dist/nile-form-help-text/nile-form-help-text.cjs.js.map +1 -0
- package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js +2 -0
- package/dist/nile-form-help-text/nile-form-help-text.css.cjs.js.map +1 -0
- package/dist/nile-form-help-text/nile-form-help-text.css.esm.js +19 -0
- package/dist/nile-form-help-text/nile-form-help-text.esm.js +5 -0
- package/dist/nile-icon/icons/svg/aquera.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/aquera.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/aquera.esm.js +1 -0
- package/dist/nile-icon/icons/svg/block.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/block.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/block.esm.js +1 -0
- package/dist/nile-icon/icons/svg/button-loading-blue-animated.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/button-loading-blue-animated.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/button-loading-blue-animated.esm.js +1 -0
- package/dist/nile-icon/icons/svg/color.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/color.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/color.esm.js +1 -0
- package/dist/nile-icon/icons/svg/firewallagent.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/firewallagent.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/firewallagent.esm.js +1 -0
- package/dist/nile-icon/icons/svg/handtool.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/handtool.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/handtool.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/log-info.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/log-info.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/log-info.esm.js +1 -0
- package/dist/nile-icon/icons/svg/process.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/process.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/process.esm.js +1 -0
- package/dist/nile-icon/icons/svg/section.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/section.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/section.esm.js +1 -0
- package/dist/nile-icon/icons/svg/text.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/text.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/text.esm.js +1 -0
- package/dist/nile-icon/icons/svg/virtualservergroup.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/virtualservergroup.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/virtualservergroup.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +2 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +21 -8
- package/dist/nile-input/nile-input.esm.js +11 -22
- package/dist/nile-loader/nile-loader.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.css.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.css.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.css.esm.js +0 -1
- package/dist/nile-loader/nile-loader.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +11 -1
- package/dist/nile-option/nile-option.esm.js +6 -10
- package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
- package/dist/nile-radio-group/nile-radio-group.css.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.css.cjs.js.map +1 -1
- package/dist/nile-radio-group/nile-radio-group.css.esm.js +10 -2
- package/dist/nile-radio-group/nile-radio-group.esm.js +14 -14
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.cjs.js +1 -1
- package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.css.esm.js +73 -20
- package/dist/nile-select/nile-select.esm.js +48 -35
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +7 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +11 -2
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.css.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.css.esm.js +70 -43
- package/dist/nile-tag/nile-tag.esm.js +7 -4
- package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.css.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.css.esm.js +15 -10
- package/dist/nile-textarea/nile-textarea.esm.js +12 -20
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-button/nile-button.d.ts +2 -2
- package/dist/src/nile-button/nile-button.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.css.js +5 -1
- package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
- package/dist/src/nile-checkbox/nile-checkbox.js +25 -1
- package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.css.js +9 -11
- package/dist/src/nile-chip/nile-chip.css.js.map +1 -1
- package/dist/src/nile-chip/nile-chip.d.ts +3 -2
- package/dist/src/nile-chip/nile-chip.js +32 -8
- package/dist/src/nile-chip/nile-chip.js.map +1 -1
- package/dist/src/nile-date-picker/index.d.ts +1 -0
- package/dist/src/nile-date-picker/index.js +2 -0
- package/dist/src/nile-date-picker/index.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.css.d.ts +12 -0
- package/dist/src/nile-date-picker/nile-date-picker.css.js +178 -0
- package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.d.ts +70 -0
- package/dist/src/nile-date-picker/nile-date-picker.js +494 -0
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -0
- package/dist/src/nile-form-error-message/index.d.ts +1 -0
- package/dist/src/nile-form-error-message/index.js +2 -0
- package/dist/src/nile-form-error-message/index.js.map +1 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.css.d.ts +12 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.css.js +33 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.css.js.map +1 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.d.ts +31 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.js +44 -0
- package/dist/src/nile-form-error-message/nile-form-error-message.js.map +1 -0
- package/dist/src/nile-form-help-text/index.d.ts +1 -0
- package/dist/src/nile-form-help-text/index.js +2 -0
- package/dist/src/nile-form-help-text/index.js.map +1 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.css.d.ts +12 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.css.js +31 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.css.js.map +1 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.d.ts +31 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.js +44 -0
- package/dist/src/nile-form-help-text/nile-form-help-text.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/aquera.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/aquera.js +5 -0
- package/dist/src/nile-icon/icons/svg/aquera.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/block.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/block.js +5 -0
- package/dist/src/nile-icon/icons/svg/block.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/button-loading-blue-animated.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/button-loading-blue-animated.js +5 -0
- package/dist/src/nile-icon/icons/svg/button-loading-blue-animated.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/color.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/color.js +5 -0
- package/dist/src/nile-icon/icons/svg/color.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/firewallagent.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/firewallagent.js +5 -0
- package/dist/src/nile-icon/icons/svg/firewallagent.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/handtool.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/handtool.js +5 -0
- package/dist/src/nile-icon/icons/svg/handtool.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +11 -0
- package/dist/src/nile-icon/icons/svg/index.js +11 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/log-info.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/log-info.js +5 -0
- package/dist/src/nile-icon/icons/svg/log-info.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/process.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/process.js +5 -0
- package/dist/src/nile-icon/icons/svg/process.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/section.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/section.js +5 -0
- package/dist/src/nile-icon/icons/svg/section.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/text.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/text.js +5 -0
- package/dist/src/nile-icon/icons/svg/text.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/virtualservergroup.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/virtualservergroup.js +5 -0
- package/dist/src/nile-icon/icons/svg/virtualservergroup.js.map +1 -0
- package/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
- package/dist/src/nile-icon-button/nile-icon-button.js +1 -0
- package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
- package/dist/src/nile-input/nile-input.css.js +21 -8
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-input/nile-input.js +18 -24
- package/dist/src/nile-input/nile-input.js.map +1 -1
- package/dist/src/nile-loader/nile-loader.css.js +0 -1
- package/dist/src/nile-loader/nile-loader.css.js.map +1 -1
- package/dist/src/nile-loader/nile-loader.js +2 -2
- package/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/dist/src/nile-option/nile-option.css.js +11 -1
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/src/nile-option/nile-option.d.ts +2 -0
- package/dist/src/nile-option/nile-option.js +23 -9
- package/dist/src/nile-option/nile-option.js.map +1 -1
- package/dist/src/nile-radio-group/nile-radio-group.css.js +8 -0
- package/dist/src/nile-radio-group/nile-radio-group.css.js.map +1 -1
- package/dist/src/nile-radio-group/nile-radio-group.d.ts +2 -3
- package/dist/src/nile-radio-group/nile-radio-group.js +24 -20
- package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
- package/dist/src/nile-select/nile-select.css.js +73 -20
- package/dist/src/nile-select/nile-select.css.js.map +1 -1
- package/dist/src/nile-select/nile-select.d.ts +10 -3
- package/dist/src/nile-select/nile-select.js +105 -42
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +7 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.d.ts +2 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js +23 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.css.js +68 -41
- package/dist/src/nile-tag/nile-tag.css.js.map +1 -1
- package/dist/src/nile-tag/nile-tag.d.ts +1 -1
- package/dist/src/nile-tag/nile-tag.js +9 -6
- package/dist/src/nile-tag/nile-tag.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.css.js +15 -10
- package/dist/src/nile-textarea/nile-textarea.css.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.js +15 -18
- package/dist/src/nile-textarea/nile-textarea.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/nile-button/nile-button.ts +2 -2
- package/src/nile-checkbox/nile-checkbox.css.ts +5 -1
- package/src/nile-checkbox/nile-checkbox.ts +26 -1
- package/src/nile-chip/nile-chip.css.ts +9 -11
- package/src/nile-chip/nile-chip.ts +32 -6
- package/src/nile-date-picker/index.ts +1 -0
- package/src/nile-date-picker/nile-date-picker.css.ts +180 -0
- package/src/nile-date-picker/nile-date-picker.ts +588 -0
- package/src/nile-form-error-message/index.ts +1 -0
- package/src/nile-form-error-message/nile-form-error-message.css.ts +35 -0
- package/src/nile-form-error-message/nile-form-error-message.ts +54 -0
- package/src/nile-form-help-text/index.ts +1 -0
- package/src/nile-form-help-text/nile-form-help-text.css.ts +33 -0
- package/src/nile-form-help-text/nile-form-help-text.ts +54 -0
- package/src/nile-icon/icons/svg/aquera.ts +5 -0
- package/src/nile-icon/icons/svg/block.ts +5 -0
- package/src/nile-icon/icons/svg/button-loading-blue-animated.ts +5 -0
- package/src/nile-icon/icons/svg/color.ts +5 -0
- package/src/nile-icon/icons/svg/firewallagent.ts +5 -0
- package/src/nile-icon/icons/svg/handtool.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +11 -0
- package/src/nile-icon/icons/svg/log-info.ts +5 -0
- package/src/nile-icon/icons/svg/process.ts +5 -0
- package/src/nile-icon/icons/svg/section.ts +5 -0
- package/src/nile-icon/icons/svg/text.ts +5 -0
- package/src/nile-icon/icons/svg/virtualservergroup.ts +5 -0
- package/src/nile-icon-button/nile-icon-button.ts +2 -1
- package/src/nile-input/nile-input.css.ts +21 -8
- package/src/nile-input/nile-input.ts +71 -38
- package/src/nile-loader/nile-loader.css.ts +0 -1
- package/src/nile-loader/nile-loader.ts +2 -2
- package/src/nile-option/nile-option.css.ts +11 -1
- package/src/nile-option/nile-option.ts +22 -9
- package/src/nile-radio-group/nile-radio-group.css.ts +8 -0
- package/src/nile-radio-group/nile-radio-group.ts +25 -15
- package/src/nile-select/nile-select.css.ts +73 -20
- package/src/nile-select/nile-select.ts +97 -40
- package/src/nile-slide-toggle/nile-slide-toggle.css.ts +7 -0
- package/src/nile-slide-toggle/nile-slide-toggle.ts +24 -0
- package/src/nile-tag/nile-tag.css.ts +68 -41
- package/src/nile-tag/nile-tag.ts +11 -8
- package/src/nile-textarea/nile-textarea.css.ts +15 -10
- package/src/nile-textarea/nile-textarea.ts +20 -18
@@ -0,0 +1,494 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { __decorate } from "tslib";
|
8
|
+
import { html, property, } from 'lit-element';
|
9
|
+
import { customElement } from 'lit/decorators.js';
|
10
|
+
import { styles } from './nile-date-picker.css';
|
11
|
+
import { query } from 'lit/decorators.js';
|
12
|
+
import { watch } from '../internal/watch';
|
13
|
+
import NileElement from '../internal/nile-element';
|
14
|
+
import '../nile-popup';
|
15
|
+
/**
|
16
|
+
* Nile icon component.
|
17
|
+
*
|
18
|
+
* @tag nile-date-picker
|
19
|
+
*
|
20
|
+
*/
|
21
|
+
let NileDatePicker = class NileDatePicker extends NileElement {
|
22
|
+
constructor() {
|
23
|
+
super(...arguments);
|
24
|
+
this.currentMonth = new Date().getMonth();
|
25
|
+
this.currentYear = new Date().getFullYear();
|
26
|
+
this.dropDownOpened = false;
|
27
|
+
this.valueAttribute = null;
|
28
|
+
this.formattedDate = null;
|
29
|
+
this.startDate = null;
|
30
|
+
this.endDate = null;
|
31
|
+
this.isSelectingStart = true; // flag to indicate what we're selecting
|
32
|
+
this.range = false;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* The styles for DatePicker
|
36
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
37
|
+
*/
|
38
|
+
static get styles() {
|
39
|
+
return [styles];
|
40
|
+
}
|
41
|
+
valueChanged() {
|
42
|
+
if (this.range && this.value) {
|
43
|
+
this.rangeValue = this.value;
|
44
|
+
this.value = null;
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
if (this.value && !isNaN(this.value.getTime())) {
|
48
|
+
const offset = this.value.getTimezoneOffset();
|
49
|
+
const localDate = new Date(this.value.getTime() - offset * 60 * 1000);
|
50
|
+
if (!isNaN(localDate.getTime())) {
|
51
|
+
this.valueAttribute = localDate.toISOString().split('T')[0];
|
52
|
+
this.formattedDate = `${String(localDate.getDate()).padStart(2, '0')}/${String(localDate.getMonth() + 1).padStart(2, '0')}/${localDate.getFullYear()}`;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
updated(changedProperties) {
|
57
|
+
super.updated(changedProperties);
|
58
|
+
if (changedProperties.has('valueAttribute')) {
|
59
|
+
const date = new Date(this.valueAttribute || '');
|
60
|
+
if (!isNaN(date.getTime())) {
|
61
|
+
const offset = date.getTimezoneOffset();
|
62
|
+
this.value = new Date(date.getTime() - offset * 60 * 1000);
|
63
|
+
this.currentMonth = this.value.getMonth();
|
64
|
+
this.currentYear = this.value.getFullYear();
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
static get observedAttributes() {
|
69
|
+
return ['value', 'range'];
|
70
|
+
}
|
71
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
72
|
+
if (name === 'value') {
|
73
|
+
this.valueAttribute = newValue;
|
74
|
+
this.initializeValue();
|
75
|
+
}
|
76
|
+
else if (name === 'range') {
|
77
|
+
this.range = newValue !== null;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
initializeValue() {
|
81
|
+
if (this.range) {
|
82
|
+
try {
|
83
|
+
const rangeValue = JSON.parse(this.valueAttribute || '');
|
84
|
+
this.startDate = new Date(rangeValue.startDate);
|
85
|
+
this.endDate = new Date(rangeValue.endDate);
|
86
|
+
// Convert to local time
|
87
|
+
this.startDate = new Date(this.startDate.getTime());
|
88
|
+
this.endDate = new Date(this.endDate.getTime());
|
89
|
+
this.rangeValue = {
|
90
|
+
startDate: this.startDate,
|
91
|
+
endDate: this.endDate,
|
92
|
+
};
|
93
|
+
this.value = null;
|
94
|
+
}
|
95
|
+
catch (e) {
|
96
|
+
console.error('Invalid range value');
|
97
|
+
}
|
98
|
+
}
|
99
|
+
else {
|
100
|
+
if (this.valueAttribute) {
|
101
|
+
let date;
|
102
|
+
date = new Date(this.valueAttribute);
|
103
|
+
date = new Date(date.getTime() - date.getTimezoneOffset() * 60000);
|
104
|
+
if (!isNaN(date.getTime())) {
|
105
|
+
this.value = date;
|
106
|
+
this.currentMonth = this.value.getMonth();
|
107
|
+
this.currentYear = this.value.getFullYear();
|
108
|
+
this.rangeValue = null;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
this.requestUpdate();
|
113
|
+
}
|
114
|
+
connectedCallback() {
|
115
|
+
super.connectedCallback();
|
116
|
+
this.initializeValue();
|
117
|
+
if (this.valueAttribute) {
|
118
|
+
const date = new Date(this.valueAttribute);
|
119
|
+
if (!isNaN(date.getTime())) {
|
120
|
+
this.value = date;
|
121
|
+
this.currentMonth = this.value.getMonth();
|
122
|
+
this.currentYear = this.value.getFullYear();
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
getDaysArray(year, month) {
|
127
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
128
|
+
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
129
|
+
}
|
130
|
+
nextMonth() {
|
131
|
+
if (this.currentMonth === 11) {
|
132
|
+
this.currentMonth = 0;
|
133
|
+
this.currentYear++;
|
134
|
+
}
|
135
|
+
else {
|
136
|
+
this.currentMonth++;
|
137
|
+
}
|
138
|
+
this.requestUpdate();
|
139
|
+
}
|
140
|
+
prevMonth() {
|
141
|
+
if (this.currentMonth === 0) {
|
142
|
+
this.currentMonth = 11;
|
143
|
+
this.currentYear--;
|
144
|
+
}
|
145
|
+
else {
|
146
|
+
this.currentMonth--;
|
147
|
+
}
|
148
|
+
this.requestUpdate();
|
149
|
+
}
|
150
|
+
selectDate(day, month, year) {
|
151
|
+
const selectedDate = new Date(year, month, day);
|
152
|
+
if (this.range) {
|
153
|
+
if (this.startDate && this.endDate) {
|
154
|
+
this.startDate = null;
|
155
|
+
this.endDate = null;
|
156
|
+
}
|
157
|
+
if (this.isSelectingStart) {
|
158
|
+
this.startDate = selectedDate;
|
159
|
+
if (this.endDate && selectedDate > this.endDate) {
|
160
|
+
this.endDate = null;
|
161
|
+
}
|
162
|
+
this.isSelectingStart = false;
|
163
|
+
}
|
164
|
+
else {
|
165
|
+
this.isSelectingStart = true;
|
166
|
+
if (this.startDate && selectedDate < this.startDate) {
|
167
|
+
this.startDate = selectedDate;
|
168
|
+
this.endDate = null;
|
169
|
+
this.isSelectingStart = false;
|
170
|
+
}
|
171
|
+
else {
|
172
|
+
this.endDate = selectedDate;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
else {
|
177
|
+
this.value = selectedDate;
|
178
|
+
this.emit('nile-changed', { value: this.value });
|
179
|
+
if (this.dropdown) {
|
180
|
+
this.dropdown.hide();
|
181
|
+
}
|
182
|
+
}
|
183
|
+
this.requestUpdate();
|
184
|
+
}
|
185
|
+
confimRange() {
|
186
|
+
if (this.startDate && this.endDate) {
|
187
|
+
this.emit('nile-range-changed', {
|
188
|
+
startDate: this.startDate,
|
189
|
+
endDate: this.endDate,
|
190
|
+
});
|
191
|
+
if (this.dropdown) {
|
192
|
+
this.dropdown.hide();
|
193
|
+
}
|
194
|
+
this.rangeValue = {
|
195
|
+
startDate: this.startDate,
|
196
|
+
endDate: this.endDate,
|
197
|
+
};
|
198
|
+
}
|
199
|
+
}
|
200
|
+
renderMonth(year, month, daysArray) {
|
201
|
+
const firstDay = new Date(year, month, 1).getDay();
|
202
|
+
const lastDay = new Date(year, month + 1, 0).getDay();
|
203
|
+
const prevMonthDays = this.getDaysArray(month === 0 ? year - 1 : year, month === 0 ? 11 : month - 1);
|
204
|
+
const nextMonthDays = this.getDaysArray(month === 11 ? year + 1 : year, month === 11 ? 0 : month + 1);
|
205
|
+
const fillerDaysBefore = prevMonthDays.slice(prevMonthDays.length - firstDay);
|
206
|
+
const fillerDaysAfter = nextMonthDays.slice(0, 6 - lastDay);
|
207
|
+
const allDays = [...fillerDaysBefore, ...daysArray, ...fillerDaysAfter];
|
208
|
+
const isSelectedDate = (day, month, year, isCurrentMonth) => {
|
209
|
+
if (!isCurrentMonth)
|
210
|
+
return '';
|
211
|
+
if (!this.range && this.value) {
|
212
|
+
const isSelected = day === this.value.getDate() &&
|
213
|
+
month === this.value.getMonth() &&
|
214
|
+
year === this.value.getFullYear();
|
215
|
+
if (isSelected)
|
216
|
+
return 'selected-date';
|
217
|
+
}
|
218
|
+
const isStartDate = this.startDate &&
|
219
|
+
day === this.startDate.getDate() &&
|
220
|
+
month === this.startDate.getMonth() &&
|
221
|
+
year === this.startDate.getFullYear();
|
222
|
+
const isEndDate = this.endDate &&
|
223
|
+
day === this.endDate.getDate() &&
|
224
|
+
month === this.endDate.getMonth() &&
|
225
|
+
year === this.endDate.getFullYear();
|
226
|
+
return isStartDate ? 'range-start' : isEndDate ? 'range-end' : '';
|
227
|
+
};
|
228
|
+
const isInRange = (day, month, year, isCurrentMonth) => {
|
229
|
+
if (!isCurrentMonth)
|
230
|
+
return false;
|
231
|
+
if (this.startDate && this.endDate) {
|
232
|
+
const date = new Date(year, month, day);
|
233
|
+
return date >= this.startDate && date <= this.endDate;
|
234
|
+
}
|
235
|
+
return false;
|
236
|
+
};
|
237
|
+
return html `
|
238
|
+
<div class="calendar">
|
239
|
+
<div class="calendar-header">
|
240
|
+
<nile-icon name="arrowleft" color="black" @click="${this.prevMonth}">
|
241
|
+
</nile-icon>
|
242
|
+
<span
|
243
|
+
>${new Date(year, month).toLocaleString('default', {
|
244
|
+
month: 'long',
|
245
|
+
})}
|
246
|
+
${year}</span
|
247
|
+
>
|
248
|
+
<nile-icon name="arrowright" color="black" @click="${this.nextMonth}">
|
249
|
+
</nile-icon>
|
250
|
+
</div>
|
251
|
+
<div class="day-names">
|
252
|
+
<div class="day">Sun</div>
|
253
|
+
<div class="day">Mon</div>
|
254
|
+
<div class="day">Tue</div>
|
255
|
+
<div class="day">Wed</div>
|
256
|
+
<div class="day">Thu</div>
|
257
|
+
<div class="day">Fri</div>
|
258
|
+
<div class="day">Sat</div>
|
259
|
+
</div>
|
260
|
+
<div class="days">
|
261
|
+
${allDays.map((day, index) => {
|
262
|
+
const isCurrentMonth = index >= fillerDaysBefore.length &&
|
263
|
+
index < fillerDaysBefore.length + daysArray.length;
|
264
|
+
return html ` <div
|
265
|
+
class="day ${isSelectedDate(day, month, year, isCurrentMonth)} ${isInRange(day, month, year, isCurrentMonth)
|
266
|
+
? 'in-range'
|
267
|
+
: ''} ${!isCurrentMonth ? 'filler' : ''}"
|
268
|
+
@click="${() => {
|
269
|
+
if (isCurrentMonth) {
|
270
|
+
this.selectDate(day, month, year);
|
271
|
+
}
|
272
|
+
}}"
|
273
|
+
>
|
274
|
+
${day}
|
275
|
+
</div>`;
|
276
|
+
})}
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
`;
|
280
|
+
}
|
281
|
+
formatDate(date) {
|
282
|
+
if (!date)
|
283
|
+
return '';
|
284
|
+
const day = String(date.getDate()).padStart(2, '0');
|
285
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
286
|
+
const year = date.getFullYear();
|
287
|
+
return `${day}/${month}/${year}`;
|
288
|
+
}
|
289
|
+
formatDateRange(value) {
|
290
|
+
if (!value) {
|
291
|
+
return value;
|
292
|
+
}
|
293
|
+
if (!value.startDate || !value.endDate)
|
294
|
+
return '';
|
295
|
+
return `${this.formatDate(value.startDate)} - ${this.formatDate(value.endDate)}`;
|
296
|
+
}
|
297
|
+
handleStartDateInput(event) {
|
298
|
+
const date = this.parseDate(event.detail.value);
|
299
|
+
if (!this.isValidDateInput(date)) {
|
300
|
+
this.startDate = null;
|
301
|
+
}
|
302
|
+
if (date && (!this.endDate || date <= this.endDate)) {
|
303
|
+
this.startDate = date;
|
304
|
+
}
|
305
|
+
else {
|
306
|
+
this.startDate = null;
|
307
|
+
this.endDate = null;
|
308
|
+
}
|
309
|
+
this.requestUpdate();
|
310
|
+
}
|
311
|
+
handleEndDateInput(event) {
|
312
|
+
const date = this.parseDate(event.detail.value);
|
313
|
+
if (!this.isValidDateInput(date)) {
|
314
|
+
this.endDate = null;
|
315
|
+
}
|
316
|
+
if (date && (!this.startDate || date >= this.startDate)) {
|
317
|
+
this.endDate = date;
|
318
|
+
}
|
319
|
+
else {
|
320
|
+
this.endDate = null;
|
321
|
+
}
|
322
|
+
this.requestUpdate();
|
323
|
+
}
|
324
|
+
parseDate(dateString) {
|
325
|
+
const [day, month, year] = dateString.split('/').map(Number);
|
326
|
+
const date = new Date(year, month - 1, day);
|
327
|
+
return !isNaN(date.getTime()) ? date : null;
|
328
|
+
}
|
329
|
+
isValidDateInput(input) {
|
330
|
+
const regex = /^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/\d{4}$/;
|
331
|
+
return regex.test(input);
|
332
|
+
}
|
333
|
+
formatTime(date) {
|
334
|
+
if (!date)
|
335
|
+
return '';
|
336
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
337
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
338
|
+
const seconds = String(date.getSeconds()).padStart(2, '0');
|
339
|
+
return `${hours}:${minutes}:${seconds}`;
|
340
|
+
}
|
341
|
+
// Validate time in HH:MM:SS format
|
342
|
+
isValidTimeInput(input) {
|
343
|
+
const regex = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/;
|
344
|
+
return regex.test(input);
|
345
|
+
}
|
346
|
+
// Parse time string to a Date object
|
347
|
+
parseTime(input, date) {
|
348
|
+
if (!this.isValidTimeInput(input)) {
|
349
|
+
return null;
|
350
|
+
}
|
351
|
+
const [hour, minute, second] = input.split(':').map(Number);
|
352
|
+
const newDate = new Date(date.getTime());
|
353
|
+
newDate.setHours(hour, minute, second);
|
354
|
+
return newDate;
|
355
|
+
}
|
356
|
+
handleStartTimeInput(event) {
|
357
|
+
if (!this.startDate) {
|
358
|
+
this.startDate = null;
|
359
|
+
return;
|
360
|
+
}
|
361
|
+
const time = this.parseTime(event.detail.value, this.startDate);
|
362
|
+
if (time) {
|
363
|
+
this.startDate = time;
|
364
|
+
}
|
365
|
+
else {
|
366
|
+
this.startDate.setHours(0, 0, 0);
|
367
|
+
}
|
368
|
+
this.requestUpdate();
|
369
|
+
}
|
370
|
+
handleEndTimeInput(event) {
|
371
|
+
if (!this.endDate) {
|
372
|
+
this.endDate = null;
|
373
|
+
return;
|
374
|
+
}
|
375
|
+
const time = this.parseTime(event.detail.value, this.endDate);
|
376
|
+
if (time) {
|
377
|
+
this.endDate = time;
|
378
|
+
}
|
379
|
+
else {
|
380
|
+
this.endDate.setHours(0, 0, 0);
|
381
|
+
}
|
382
|
+
this.requestUpdate();
|
383
|
+
}
|
384
|
+
/* #endregion */
|
385
|
+
/* #region Methods */
|
386
|
+
/**
|
387
|
+
* Render method
|
388
|
+
* @slot This is a slot test
|
389
|
+
*/
|
390
|
+
render() {
|
391
|
+
const daysArray = this.getDaysArray(this.currentYear, this.currentMonth);
|
392
|
+
const nextMonth = (this.currentMonth + 1) % 12;
|
393
|
+
const nextYear = this.currentMonth === 11 ? this.currentYear + 1 : this.currentYear;
|
394
|
+
const nextMonthDaysArray = this.getDaysArray(nextYear, nextMonth);
|
395
|
+
return html `
|
396
|
+
<nile-dropdown>
|
397
|
+
${this.range ? html `
|
398
|
+
<nile-input
|
399
|
+
slot="trigger"
|
400
|
+
label="Choose a date range"
|
401
|
+
readonly
|
402
|
+
value="${this.formatDateRange(this.rangeValue)}"
|
403
|
+
>
|
404
|
+
<nile-icon name="calendar" slot="suffix"> </nile-icon>
|
405
|
+
</nile-input>
|
406
|
+
` : html `
|
407
|
+
<nile-input
|
408
|
+
slot="trigger"
|
409
|
+
label="Choose a date"
|
410
|
+
readonly
|
411
|
+
value="${this.formatDate(this.value)}"
|
412
|
+
>
|
413
|
+
<nile-icon name="calendar" slot="suffix"> </nile-icon>
|
414
|
+
</nile-input>
|
415
|
+
`}
|
416
|
+
|
417
|
+
<div class="base">
|
418
|
+
<div class="calendar-wrapper">
|
419
|
+
<div class="calendar-container ${this.range ? 'with-margin' : ''}">
|
420
|
+
${this.renderMonth(this.currentYear, this.currentMonth, this.getDaysArray(this.currentYear, this.currentMonth))}
|
421
|
+
</div>
|
422
|
+
${this.range
|
423
|
+
? html `
|
424
|
+
<div class="calendar-container">
|
425
|
+
${this.renderMonth(this.currentYear, (this.currentMonth + 1) % 12, this.getDaysArray(this.currentYear, (this.currentMonth + 1) % 12))}
|
426
|
+
</div>
|
427
|
+
`
|
428
|
+
: ''}
|
429
|
+
</div>
|
430
|
+
${this.range
|
431
|
+
? html `
|
432
|
+
<div class="calender-input">
|
433
|
+
<span class="manual-input-label">From </span>
|
434
|
+
<div class="from">
|
435
|
+
<nile-input class="manual-input" value="${this.formatDate(this.startDate)}" placeholder="DD/MM/YYYY" @nile-change="${this.handleStartDateInput}"></nile-input>
|
436
|
+
<nile-input class="manual-input" value="${this.formatTime(this.startDate)}" placeholder="HH:MM:SS" @nile-change="${this.handleStartTimeInput}"> </nile-input>
|
437
|
+
|
438
|
+
</div>
|
439
|
+
<br>
|
440
|
+
<span class="manual-input-label">To </span>
|
441
|
+
<div class="from">
|
442
|
+
<nile-input class="manual-input" value="${this.formatDate(this.endDate)}" placeholder="DD/MM/YYYY" @nile-change="${this.handleEndDateInput}"></nile-input>
|
443
|
+
<nile-input class="manual-input" value="${this.formatTime(this.endDate)}" placeholder="HH:MM:SS" @nile-change="${this.handleEndTimeInput}"> </nile-input>
|
444
|
+
</div>
|
445
|
+
<nile-button class="apply-button" ?disabled="${!this.startDate || !this.endDate}" @click="${this.confimRange}"> Apply</nile-button>
|
446
|
+
|
447
|
+
</div>
|
448
|
+
</div>
|
449
|
+
`
|
450
|
+
: ''}
|
451
|
+
</div>
|
452
|
+
</nile-dropdown>
|
453
|
+
`;
|
454
|
+
}
|
455
|
+
};
|
456
|
+
__decorate([
|
457
|
+
query('nile-dropdown')
|
458
|
+
], NileDatePicker.prototype, "dropdown", void 0);
|
459
|
+
__decorate([
|
460
|
+
property({ type: Boolean, reflect: true })
|
461
|
+
], NileDatePicker.prototype, "dropDownOpened", void 0);
|
462
|
+
__decorate([
|
463
|
+
property({ type: Object })
|
464
|
+
], NileDatePicker.prototype, "value", void 0);
|
465
|
+
__decorate([
|
466
|
+
property({ type: Object })
|
467
|
+
], NileDatePicker.prototype, "rangeValue", void 0);
|
468
|
+
__decorate([
|
469
|
+
property({ type: String, attribute: 'value' })
|
470
|
+
], NileDatePicker.prototype, "valueAttribute", void 0);
|
471
|
+
__decorate([
|
472
|
+
property({ type: String, attribute: 'value' })
|
473
|
+
], NileDatePicker.prototype, "formattedDate", void 0);
|
474
|
+
__decorate([
|
475
|
+
property({ type: Object })
|
476
|
+
], NileDatePicker.prototype, "startDate", void 0);
|
477
|
+
__decorate([
|
478
|
+
property({ type: Object })
|
479
|
+
], NileDatePicker.prototype, "endDate", void 0);
|
480
|
+
__decorate([
|
481
|
+
property({ type: Boolean })
|
482
|
+
], NileDatePicker.prototype, "isSelectingStart", void 0);
|
483
|
+
__decorate([
|
484
|
+
property({ type: Boolean })
|
485
|
+
], NileDatePicker.prototype, "range", void 0);
|
486
|
+
__decorate([
|
487
|
+
watch('value')
|
488
|
+
], NileDatePicker.prototype, "valueChanged", null);
|
489
|
+
NileDatePicker = __decorate([
|
490
|
+
customElement('nile-date-picker')
|
491
|
+
], NileDatePicker);
|
492
|
+
export { NileDatePicker };
|
493
|
+
export default NileDatePicker;
|
494
|
+
//# sourceMappingURL=nile-date-picker.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-date-picker.js","sourceRoot":"","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I,EAAE,MAAM,EAAE,CAAC;+CAA6B;AAC3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;wDAAyB;AAExB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CAAe;AAG3C;IADC,KAAK,CAAC,OAAO,CAAC;kDAuBd;AAxDU,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAyhB1B;SAzhBY,cAAc;AA2hB3B,eAAe,cAAc,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n property,\n CSSResultArray,\n TemplateResult,\n} from 'lit-element';\nimport { customElement } from 'lit/decorators.js';\nimport { styles } from './nile-date-picker.css';\nimport { animateTo, stopAnimations } from '../internal/animate';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { query } from 'lit/decorators.js';\nimport {\n getAnimation,\n setDefaultAnimation,\n} from '../utilities/animation-registry';\nimport { getTabbableBoundary } from '../internal/tabbable';\nimport { waitForEvent } from '../internal/event';\nimport { watch } from '../internal/watch';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup, PropertyValues } from 'lit';\nimport type NileButton from '../nile-button/nile-button';\nimport type NileIconButton from '../nile-icon-button/nile-icon-button';\nimport type { NileMenu } from '../nile-menu';\nimport type { NilePopup } from '../nile-popup';\nimport '../nile-popup';\nimport { NileDropdown } from '../nile-dropdown';\n\n/**\n * Nile icon component.\n *\n * @tag nile-date-picker\n *\n */\n@customElement('nile-date-picker')\nexport class NileDatePicker extends NileElement {\n /**\n * The styles for DatePicker\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private currentMonth: number = new Date().getMonth();\n private currentYear: number = new Date().getFullYear();\n\n @query('nile-dropdown') dropdown: NileDropdown;\n\n @property({ type: Boolean, reflect: true }) dropDownOpened = false;\n\n @property({ type: Object }) value : any;\n\n @property({ type: Object }) rangeValue : any;\n\n @property({ type: String, attribute: 'value' }) valueAttribute:\n | string\n | null = null;\n\n @property({ type: String, attribute: 'value' }) formattedDate: string | null =\n null;\n\n @property({ type: Object }) startDate: Date | null = null;\n @property({ type: Object }) endDate: Date | null = null;\n @property({ type: Boolean }) isSelectingStart = true; // flag to indicate what we're selecting\n\n @property({ type: Boolean }) range = false;\n\n @watch('value')\n valueChanged() {\n\n if (this.range && this.value) {\n this.rangeValue = this.value;\n this.value = null;\n return;\n }\n\n if (this.value && !isNaN(this.value.getTime())) {\n const offset = this.value.getTimezoneOffset();\n const localDate = new Date(this.value.getTime() - offset * 60 * 1000);\n if (!isNaN(localDate.getTime())) {\n this.valueAttribute = localDate.toISOString().split('T')[0];\n this.formattedDate = `${String(localDate.getDate()).padStart(\n 2,\n '0'\n )}/${String(localDate.getMonth() + 1).padStart(\n 2,\n '0'\n )}/${localDate.getFullYear()}`;\n }\n }\n }\n\n\n updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n\n if (changedProperties.has('valueAttribute')) {\n const date = new Date(this.valueAttribute || '');\n if (!isNaN(date.getTime())) {\n const offset = date.getTimezoneOffset();\n this.value = new Date(date.getTime() - offset * 60 * 1000);\n this.currentMonth = this.value.getMonth();\n this.currentYear = this.value.getFullYear();\n }\n }\n }\n\n static get observedAttributes() {\n return ['value', 'range'];\n }\n\n attributeChangedCallback(name: string, oldValue: string, newValue: string) {\n if (name === 'value') {\n this.valueAttribute = newValue;\n this.initializeValue();\n } else if (name === 'range') {\n this.range = newValue !== null;\n }\n }\n\n initializeValue() {\n if (this.range) {\n try {\n const rangeValue = JSON.parse(this.valueAttribute || '');\n this.startDate = new Date(rangeValue.startDate);\n this.endDate = new Date(rangeValue.endDate);\n\n // Convert to local time\n this.startDate = new Date(this.startDate.getTime());\n this.endDate = new Date(this.endDate.getTime());\n\n this.rangeValue = {\n startDate: this.startDate,\n endDate: this.endDate,\n };\n this.value = null;\n } catch (e) {\n console.error('Invalid range value');\n }\n } else {\n if (this.valueAttribute) {\n let date: Date;\n\n date = new Date(this.valueAttribute);\n\n date = new Date(date.getTime() - date.getTimezoneOffset() * 60000);\n\n if (!isNaN(date.getTime())) {\n this.value = date;\n this.currentMonth = this.value.getMonth();\n this.currentYear = this.value.getFullYear();\n this.rangeValue = null;\n }\n }\n }\n this.requestUpdate();\n }\n\n\n\n\n\n connectedCallback() {\n super.connectedCallback();\n this.initializeValue();\n\n if (this.valueAttribute) {\n const date = new Date(this.valueAttribute);\n if (!isNaN(date.getTime())) {\n this.value = date;\n this.currentMonth = this.value.getMonth();\n this.currentYear = this.value.getFullYear();\n }\n }\n }\n\n private getDaysArray(year: number, month: number): number[] {\n const daysInMonth = new Date(year, month + 1, 0).getDate();\n return Array.from({ length: daysInMonth }, (_, i) => i + 1);\n }\n\n private nextMonth(): void {\n\n if (this.currentMonth === 11) {\n this.currentMonth = 0;\n this.currentYear++;\n } else {\n this.currentMonth++;\n }\n this.requestUpdate();\n }\n\n private prevMonth(): void {\n\n if (this.currentMonth === 0) {\n this.currentMonth = 11;\n this.currentYear--;\n } else {\n this.currentMonth--;\n }\n this.requestUpdate();\n }\n\n private selectDate(day: number, month: number, year: number): void {\n const selectedDate = new Date(year, month, day);\n\n if (this.range) {\n if (this.startDate && this.endDate) {\n this.startDate = null;\n this.endDate = null;\n }\n\n if (this.isSelectingStart) {\n this.startDate = selectedDate;\n if (this.endDate && selectedDate > this.endDate) {\n this.endDate = null;\n }\n this.isSelectingStart = false;\n } else {\n this.isSelectingStart = true;\n\n if (this.startDate && selectedDate < this.startDate) {\n this.startDate = selectedDate;\n this.endDate = null;\n this.isSelectingStart = false;\n } else {\n this.endDate = selectedDate;\n }\n }\n } else {\n this.value = selectedDate;\n this.emit('nile-changed', { value: this.value });\n if (this.dropdown) {\n this.dropdown.hide();\n }\n }\n\n this.requestUpdate();\n }\n\n private confimRange() {\n if (this.startDate && this.endDate) {\n this.emit('nile-range-changed', {\n startDate: this.startDate,\n endDate: this.endDate,\n });\n if (this.dropdown) {\n this.dropdown.hide();\n }\n\n this.rangeValue = {\n startDate: this.startDate,\n endDate: this.endDate,\n };\n }\n }\n\n private renderMonth(\n year: number,\n month: number,\n daysArray: number[]\n ): TemplateResult {\n const firstDay = new Date(year, month, 1).getDay();\n const lastDay = new Date(year, month + 1, 0).getDay();\n const prevMonthDays = this.getDaysArray(\n month === 0 ? year - 1 : year,\n month === 0 ? 11 : month - 1\n );\n const nextMonthDays = this.getDaysArray(\n month === 11 ? year + 1 : year,\n month === 11 ? 0 : month + 1\n );\n const fillerDaysBefore = prevMonthDays.slice(\n prevMonthDays.length - firstDay\n );\n const fillerDaysAfter = nextMonthDays.slice(0, 6 - lastDay);\n const allDays = [...fillerDaysBefore, ...daysArray, ...fillerDaysAfter];\n\n const isSelectedDate = (\n day: number,\n month: number,\n year: number,\n isCurrentMonth: boolean\n ) => {\n if (!isCurrentMonth) return '';\n\n if (!this.range && this.value) {\n const isSelected =\n day === this.value.getDate() &&\n month === this.value.getMonth() &&\n year === this.value.getFullYear();\n if (isSelected) return 'selected-date';\n }\n\n const isStartDate =\n this.startDate &&\n day === this.startDate.getDate() &&\n month === this.startDate.getMonth() &&\n year === this.startDate.getFullYear();\n const isEndDate =\n this.endDate &&\n day === this.endDate.getDate() &&\n month === this.endDate.getMonth() &&\n year === this.endDate.getFullYear();\n\n return isStartDate ? 'range-start' : isEndDate ? 'range-end' : '';\n };\n\n const isInRange = (\n day: number,\n month: number,\n year: number,\n isCurrentMonth: boolean\n ) => {\n if (!isCurrentMonth) return false;\n if (this.startDate && this.endDate) {\n const date = new Date(year, month, day);\n return date >= this.startDate && date <= this.endDate;\n }\n return false;\n };\n\n return html`\n <div class=\"calendar\">\n <div class=\"calendar-header\">\n <nile-icon name=\"arrowleft\" color=\"black\" @click=\"${this.prevMonth}\">\n </nile-icon>\n <span\n >${new Date(year, month).toLocaleString('default', {\n month: 'long',\n })}\n ${year}</span\n >\n <nile-icon name=\"arrowright\" color=\"black\" @click=\"${this.nextMonth}\">\n </nile-icon>\n </div>\n <div class=\"day-names\">\n <div class=\"day\">Sun</div>\n <div class=\"day\">Mon</div>\n <div class=\"day\">Tue</div>\n <div class=\"day\">Wed</div>\n <div class=\"day\">Thu</div>\n <div class=\"day\">Fri</div>\n <div class=\"day\">Sat</div>\n </div>\n <div class=\"days\">\n ${allDays.map((day, index) => {\n const isCurrentMonth =\n index >= fillerDaysBefore.length &&\n index < fillerDaysBefore.length + daysArray.length;\n return html` <div\n class=\"day ${isSelectedDate(\n day,\n month,\n year,\n isCurrentMonth\n )} ${isInRange(day, month, year, isCurrentMonth)\n ? 'in-range'\n : ''} ${!isCurrentMonth ? 'filler' : ''}\"\n @click=\"${() => {\n if (isCurrentMonth) {\n this.selectDate(day, month, year);\n }\n }}\"\n >\n ${day}\n </div>`;\n })}\n </div>\n </div>\n `;\n }\n\n private formatDate(date: Date | null): string {\n if (!date) return '';\n const day = String(date.getDate()).padStart(2, '0');\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const year = date.getFullYear();\n return `${day}/${month}/${year}`;\n }\n\n private formatDateRange(value: { startDate: Date | null, endDate: Date | null }): string {\n if(!value){\n return value;\n }\n if (!value.startDate || !value.endDate) return '';\n return `${this.formatDate(value.startDate)} - ${this.formatDate(value.endDate)}`;\n }\n\n private handleStartDateInput(event: CustomEvent): void {\n const date = this.parseDate(event.detail.value);\n if (!this.isValidDateInput(date)) {\n this.startDate = null;\n }\n if (date && (!this.endDate || date <= this.endDate)) {\n this.startDate = date;\n } else {\n this.startDate = null;\n this.endDate = null;\n }\n this.requestUpdate();\n }\n\n private handleEndDateInput(event: CustomEvent): void {\n const date = this.parseDate(event.detail.value);\n if (!this.isValidDateInput(date)) {\n this.endDate = null;\n }\n if (date && (!this.startDate || date >= this.startDate)) {\n this.endDate = date;\n } else {\n this.endDate = null;\n\n }\n this.requestUpdate();\n }\n\n private parseDate(dateString: string): Date | null {\n const [day, month, year] = dateString.split('/').map(Number);\n const date = new Date(year, month - 1, day);\n return !isNaN(date.getTime()) ? date : null;\n }\n\n private isValidDateInput(input: any): boolean {\n const regex = /^(0[1-9]|[12][0-9]|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$/;\n return regex.test(input);\n }\n\n private formatTime(date: Date | null): string {\n if (!date) return '';\n const hours = String(date.getHours()).padStart(2, '0');\n const minutes = String(date.getMinutes()).padStart(2, '0');\n const seconds = String(date.getSeconds()).padStart(2, '0');\n return `${hours}:${minutes}:${seconds}`;\n }\n\n // Validate time in HH:MM:SS format\n private isValidTimeInput(input: string): boolean {\n const regex = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/;\n return regex.test(input);\n }\n\n// Parse time string to a Date object\nprivate parseTime(input: string, date: Date): Date | null {\n if (!this.isValidTimeInput(input)) {\n return null;\n }\n const [hour, minute, second] = input.split(':').map(Number);\n const newDate = new Date(date.getTime());\n newDate.setHours(hour, minute, second);\n return newDate;\n}\n\nprivate handleStartTimeInput(event: CustomEvent): void {\n if (!this.startDate) {\n this.startDate = null;\n return;\n }\n const time = this.parseTime(event.detail.value, this.startDate);\n if (time) {\n this.startDate = time;\n } else {\n this.startDate.setHours(0, 0, 0);\n }\n this.requestUpdate();\n}\n\nprivate handleEndTimeInput(event: CustomEvent): void {\n if (!this.endDate) {\n this.endDate = null;\n return;\n }\n const time = this.parseTime(event.detail.value, this.endDate);\n if (time) {\n this.endDate = time;\n } else {\n this.endDate.setHours(0, 0, 0);\n }\n this.requestUpdate();\n}\n\n\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n render(): TemplateResult {\n const daysArray = this.getDaysArray(this.currentYear, this.currentMonth);\n const nextMonth = (this.currentMonth + 1) % 12;\n const nextYear =\n this.currentMonth === 11 ? this.currentYear + 1 : this.currentYear;\n const nextMonthDaysArray = this.getDaysArray(nextYear, nextMonth);\n\n return html`\n <nile-dropdown>\n ${this.range ? html`\n <nile-input\n slot=\"trigger\"\n label=\"Choose a date range\"\n readonly\n value=\"${this.formatDateRange(this.rangeValue)}\"\n >\n <nile-icon name=\"calendar\" slot=\"suffix\"> </nile-icon>\n </nile-input>\n ` : html`\n <nile-input\n slot=\"trigger\"\n label=\"Choose a date\"\n readonly\n value=\"${this.formatDate(this.value)}\"\n >\n <nile-icon name=\"calendar\" slot=\"suffix\"> </nile-icon>\n </nile-input>\n `}\n\n <div class=\"base\">\n <div class=\"calendar-wrapper\">\n <div class=\"calendar-container ${this.range ? 'with-margin' : ''}\">\n ${this.renderMonth(\n this.currentYear,\n this.currentMonth,\n this.getDaysArray(this.currentYear, this.currentMonth)\n )}\n </div>\n ${this.range\n ? html`\n <div class=\"calendar-container\">\n ${this.renderMonth(\n this.currentYear,\n (this.currentMonth + 1) % 12,\n this.getDaysArray(\n this.currentYear,\n (this.currentMonth + 1) % 12\n )\n )}\n </div>\n `\n : ''}\n </div>\n ${this.range\n ? html`\n <div class=\"calender-input\">\n <span class=\"manual-input-label\">From </span>\n <div class=\"from\">\n <nile-input class=\"manual-input\" value=\"${this.formatDate(this.startDate)}\" placeholder=\"DD/MM/YYYY\" @nile-change=\"${this.handleStartDateInput}\"></nile-input>\n <nile-input class=\"manual-input\" value=\"${this.formatTime(this.startDate)}\" placeholder=\"HH:MM:SS\" @nile-change=\"${this.handleStartTimeInput}\"> </nile-input>\n\n </div>\n<br>\n <span class=\"manual-input-label\">To </span>\n <div class=\"from\">\n <nile-input class=\"manual-input\" value=\"${this.formatDate(this.endDate)}\" placeholder=\"DD/MM/YYYY\" @nile-change=\"${this.handleEndDateInput}\"></nile-input>\n <nile-input class=\"manual-input\" value=\"${this.formatTime(this.endDate)}\" placeholder=\"HH:MM:SS\" @nile-change=\"${this.handleEndTimeInput}\"> </nile-input>\n </div>\n<nile-button class=\"apply-button\" ?disabled=\"${\n !this.startDate || !this.endDate\n }\" @click=\"${this.confimRange}\"> Apply</nile-button>\n\n </div>\n </div>\n `\n : ''}\n </div>\n </nile-dropdown>\n `;\n }\n}\n\nexport default NileDatePicker;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-date-picker': NileDatePicker;\n }\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NileFormErrorMessage } from './nile-form-error-message';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-form-error-message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export { NileFormErrorMessage } from './nile-form-error-message';\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* FormErrorMessage CSS
|
9
|
+
*/
|
10
|
+
export declare const styles: import("lit-element").CSSResult;
|
11
|
+
declare const _default: import("lit-element").CSSResult[];
|
12
|
+
export default _default;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { css } from 'lit-element';
|
8
|
+
/**
|
9
|
+
* FormErrorMessage CSS
|
10
|
+
*/
|
11
|
+
export const styles = css `
|
12
|
+
:host {
|
13
|
+
}
|
14
|
+
|
15
|
+
.nile-form-error-message {
|
16
|
+
display: flex;
|
17
|
+
align-items: center;
|
18
|
+
color: var(--nile-colors-red-700);
|
19
|
+
font-family: Colfax-regular;
|
20
|
+
font-size: 12px;
|
21
|
+
font-style: normal;
|
22
|
+
font-weight: 400;
|
23
|
+
line-height: 12px;
|
24
|
+
letter-spacing: 0.2px;
|
25
|
+
margin-top: 6px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.nile-form-error-message__icon {
|
29
|
+
margin-right: 6px;
|
30
|
+
}
|
31
|
+
`;
|
32
|
+
export default [styles];
|
33
|
+
//# sourceMappingURL=nile-form-error-message.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nile-form-error-message.css.js","sourceRoot":"","sources":["../../../src/nile-form-error-message/nile-form-error-message.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit-element';\n\n/**\n * FormErrorMessage CSS\n */\nexport const styles = css`\n :host {\n }\n\n .nile-form-error-message {\n display: flex;\n align-items: center;\n color: var(--nile-colors-red-700);\n font-family: Colfax-regular;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px;\n letter-spacing: 0.2px;\n margin-top: 6px;\n }\n\n .nile-form-error-message__icon {\n margin-right: 6px;\n }\n`;\n\nexport default [styles];\n"]}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright Aquera Inc 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the BSD-3-Clause license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { LitElement, CSSResultArray, TemplateResult } from 'lit-element';
|
8
|
+
/**
|
9
|
+
* Nile icon component.
|
10
|
+
*
|
11
|
+
* @tag nile-form-error-message
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
export declare class NileFormErrorMessage extends LitElement {
|
15
|
+
/**
|
16
|
+
* The styles for FormErrorMessage
|
17
|
+
* @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
|
18
|
+
*/
|
19
|
+
static get styles(): CSSResultArray;
|
20
|
+
/**
|
21
|
+
* Render method
|
22
|
+
* @slot This is a slot test
|
23
|
+
*/
|
24
|
+
render(): TemplateResult;
|
25
|
+
}
|
26
|
+
export default NileFormErrorMessage;
|
27
|
+
declare global {
|
28
|
+
interface HTMLElementTagNameMap {
|
29
|
+
'nile-form-error-message': NileFormErrorMessage;
|
30
|
+
}
|
31
|
+
}
|