ngx-tethys 18.1.1 → 18.2.0-next.1
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/CHANGELOG.md +36 -0
- package/alert/styles/mixin.scss +1 -1
- package/anchor/style/anchor.scss +4 -2
- package/autocomplete/autocomplete.component.d.ts +2 -1
- package/avatar/styles/avatar.scss +1 -1
- package/back-top/styles/back-top.scss +3 -3
- package/button/styles/button-group.scss +9 -9
- package/button/styles/button.scss +2 -6
- package/button/styles/mixin.scss +6 -53
- package/calendar/calendar-header.component.d.ts +2 -0
- package/calendar/styles/calendar.scss +3 -11
- package/card/styles/card.scss +3 -3
- package/carousel/styles/carousel.scss +10 -10
- package/cascader/cascader.component.d.ts +1 -0
- package/cascader/styles/cascader.scss +3 -2
- package/collapse/styles/collapse.scss +4 -2
- package/color-picker/color-picker-panel.component.d.ts +3 -1
- package/color-picker/styles/alpha.scss +1 -1
- package/color-picker/styles/color-picker-panel.scss +1 -1
- package/color-picker/styles/hue.scss +1 -1
- package/color-picker/styles/saturation.scss +1 -1
- package/comment/styles/mixin.scss +1 -1
- package/copy/copy.directive.d.ts +1 -0
- package/core/index.d.ts +1 -0
- package/core/theme/index.d.ts +2 -0
- package/core/theme/store.d.ts +12 -0
- package/core/theme/theme.d.ts +5 -0
- package/date-picker/abstract-picker.component.d.ts +3 -1
- package/date-picker/date-helper.service.d.ts +3 -0
- package/date-picker/date-picker.config.d.ts +7 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
- package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
- package/date-picker/styles/calendar.scss +1 -1
- package/date-picker/styles/decade-panel.scss +1 -1
- package/date-picker/styles/picker.scss +1 -1
- package/date-picker/styles/range-picker.scss +3 -3
- package/date-picker/styles/year-panel.scss +2 -2
- package/date-range/date-range.component.d.ts +2 -0
- package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
- package/dialog/confirm/confirm.component.d.ts +1 -0
- package/dialog/confirm.config.d.ts +14 -7
- package/dialog/styles/dialog.scss +6 -6
- package/dropdown/styles/dropdown.scss +3 -3
- package/empty/empty.component.d.ts +14 -9
- package/empty/empty.config.d.ts +3 -0
- package/empty/styles/empty.scss +22 -2
- package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
- package/esm2022/calendar/calendar-header.component.mjs +9 -5
- package/esm2022/carousel/carousel.component.mjs +3 -3
- package/esm2022/cascader/cascader.component.mjs +5 -3
- package/esm2022/checkbox/checkbox.component.mjs +1 -1
- package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
- package/esm2022/copy/copy.directive.mjs +7 -5
- package/esm2022/core/index.mjs +2 -1
- package/esm2022/core/theme/index.mjs +3 -0
- package/esm2022/core/theme/store.mjs +42 -0
- package/esm2022/core/theme/theme.mjs +2 -0
- package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
- package/esm2022/date-picker/base-picker.component.mjs +2 -2
- package/esm2022/date-picker/date-helper.service.mjs +4 -2
- package/esm2022/date-picker/date-picker.component.mjs +1 -1
- package/esm2022/date-picker/date-picker.config.mjs +55 -2
- package/esm2022/date-picker/date-picker.directive.mjs +1 -1
- package/esm2022/date-picker/date-picker.service.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
- package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
- package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
- package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
- package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
- package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
- package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
- package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
- package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
- package/esm2022/date-picker/month-picker.component.mjs +1 -1
- package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.directive.mjs +1 -1
- package/esm2022/date-picker/week-picker.component.mjs +1 -1
- package/esm2022/date-picker/year-picker.component.mjs +1 -1
- package/esm2022/date-range/date-range.component.mjs +7 -4
- package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
- package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
- package/esm2022/dialog/confirm.config.mjs +17 -2
- package/esm2022/empty/empty.component.mjs +7 -2
- package/esm2022/empty/empty.config.mjs +4 -1
- package/esm2022/empty/svgs.mjs +103 -8
- package/esm2022/form/form-validator-loader.mjs +17 -15
- package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
- package/esm2022/i18n/i18n.mjs +2 -0
- package/esm2022/i18n/i18n.service.mjs +39 -0
- package/esm2022/i18n/i18n.token.mjs +8 -0
- package/esm2022/i18n/index.mjs +7 -0
- package/esm2022/i18n/locale.mjs +14 -0
- package/esm2022/i18n/locales/en-us.mjs +147 -0
- package/esm2022/i18n/locales/zh-cn.mjs +127 -0
- package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
- package/esm2022/notify/notify.component.mjs +3 -3
- package/esm2022/pagination/pagination.component.mjs +22 -5
- package/esm2022/pagination/pagination.module.mjs +26 -5
- package/esm2022/pagination/pagination.pipe.mjs +22 -1
- package/esm2022/radio/button/radio-button.component.mjs +1 -1
- package/esm2022/radio/radio.component.mjs +1 -1
- package/esm2022/result/result.component.mjs +3 -3
- package/esm2022/select/custom-select/custom-select.component.mjs +9 -3
- package/esm2022/strength/strength.component.mjs +21 -20
- package/esm2022/table/table-skeleton.component.mjs +3 -3
- package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
- package/esm2022/time-picker/time-picker.component.mjs +4 -2
- package/esm2022/transfer/transfer-list.component.mjs +5 -3
- package/esm2022/tree-select/tree-select.component.mjs +5 -3
- package/esm2022/version.mjs +2 -2
- package/esm2022/watermark/config.mjs +2 -2
- package/esm2022/watermark/watermark.directive.mjs +18 -10
- package/fesm2022/ngx-tethys-autocomplete.mjs +4 -2
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +8 -5
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +2 -2
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +4 -2
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +6 -4
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +42 -2
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +8 -4
- package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +27 -2
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +111 -8
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +16 -14
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +4 -2
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +338 -0
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
- package/fesm2022/ngx-tethys-notify.mjs +2 -2
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +66 -7
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +2 -2
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +8 -2
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +20 -19
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +2 -2
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +4 -2
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +4 -2
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +18 -10
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/form/form-validator-loader.d.ts +2 -0
- package/form/styles/form-check.scss +1 -1
- package/form/styles/forms.scss +2 -3
- package/form/styles/mixin.scss +6 -5
- package/guider/guider-hint/guider-hint.component.d.ts +3 -1
- package/guider/styles/guider-tip.scss +2 -1
- package/i18n/i18n.d.ts +143 -0
- package/i18n/i18n.service.d.ts +19 -0
- package/i18n/i18n.token.d.ts +5 -0
- package/i18n/index.d.ts +6 -0
- package/i18n/locale.d.ts +4 -0
- package/i18n/locales/en-us.d.ts +147 -0
- package/i18n/locales/zh-cn.d.ts +126 -0
- package/icon/examples/all/all.component.scss +3 -1
- package/image/styles/image.scss +15 -11
- package/input/styles/input-group.scss +1 -1
- package/input/styles/input.scss +2 -2
- package/layout/examples/sidebar/sidebar.component.scss +1 -1
- package/layout/styles/layout.scss +3 -3
- package/menu/examples/theme/theme.component.scss +0 -8
- package/menu/styles/theme.scss +4 -4
- package/message/styles/message.scss +1 -1
- package/nav/examples/basic/basic.component.scss +1 -1
- package/nav/examples/extra/extra.component.scss +1 -1
- package/nav/examples/fill/fill.component.scss +1 -1
- package/nav/examples/lite/lite.component.scss +1 -1
- package/nav/examples/pills/pills.component.scss +1 -1
- package/nav/examples/responsive/responsive.component.scss +1 -1
- package/nav/examples/size/size.component.scss +1 -1
- package/nav/examples/tabs/tabs.component.scss +1 -1
- package/nav/examples/type/type.component.scss +1 -1
- package/nav/examples/vertical/vertical.component.scss +1 -1
- package/notify/styles/notify.scss +4 -4
- package/package.json +7 -1
- package/pagination/pagination.component.d.ts +4 -1
- package/pagination/pagination.module.d.ts +1 -1
- package/pagination/pagination.pipe.d.ts +6 -0
- package/pagination/styles/pagination.scss +2 -2
- package/popover/styles.scss +3 -3
- package/property/styles/properties.scss +1 -1
- package/radio/radio.component.d.ts +0 -2
- package/resizable/examples/line/line.component.scss +3 -1
- package/resizable/examples/style.scss +7 -5
- package/result/styles/result.scss +25 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/styles/mixin.scss +2 -3
- package/segment/styles/segment.scss +1 -1
- package/select/custom-select/custom-select.component.d.ts +1 -0
- package/select/styles/select.scss +1 -1
- package/shared/option/styles/option.mixin.scss +1 -1
- package/shared/select/styles/select.mixin.scss +2 -2
- package/slide/examples/drawer-container/drawer-container.component.scss +1 -1
- package/slide/examples/layout/layout.component.scss +4 -2
- package/slide/styles/slide.scss +3 -2
- package/slider/slider.scss +2 -2
- package/stepper/examples/basic/basic.component.scss +3 -1
- package/stepper/examples/icon/icon.component.scss +3 -1
- package/stepper/styles/stepper.scss +7 -3
- package/strength/strength.component.d.ts +21 -2
- package/styles/bootstrap/_variables.scss +14 -876
- package/styles/bootstrap/utilities/_background.scss +27 -5
- package/styles/bootstrap/utilities/_text.scss +29 -31
- package/styles/index.scss +2 -1
- package/styles/mixins/background-variant.scss +2 -10
- package/styles/mixins/utilities.scss +2 -11
- package/styles/modules/cdk/drag-drop.scss +6 -8
- package/styles/modules/close.scss +1 -1
- package/styles/modules/reboot.scss +1 -1
- package/styles/modules/tables.scss +1 -1
- package/styles/modules/utils.scss +0 -17
- package/styles/theme/dark.scss +70 -0
- package/styles/theme/default.scss +70 -0
- package/styles/theme/index.scss +2 -0
- package/styles/variables.scss +114 -76
- package/switch/styles/mixin.scss +0 -13
- package/table/styles/table.scss +7 -19
- package/tabs/styles/tabs.scss +1 -1
- package/tag/styles/mixin.scss +7 -42
- package/tag/styles/tag.scss +2 -2
- package/time-picker/styles/time-panel.scss +1 -1
- package/time-picker/time-picker-panel.component.d.ts +3 -1
- package/time-picker/time-picker.component.d.ts +3 -1
- package/timeline/styles/timeline.scss +2 -2
- package/tooltip/styles.scss +4 -4
- package/transfer/styles/transfer.scss +2 -2
- package/transfer/transfer-list.component.d.ts +3 -1
- package/tree/styles/tree.scss +3 -5
- package/tree-select/tree-select.component.d.ts +1 -0
- package/watermark/config.d.ts +1 -1
- package/watermark/watermark.directive.d.ts +23 -2
- package/carousel/styles/index.scss +0 -1
- package/carousel/styles/variables.scss +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
# [18.2.0-next.1](https://github.com/atinc/ngx-tethys/compare/18.2.0-next.0...18.2.0-next.1) (2024-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **autocomplete:** support i18n #TINFR-1020 ([#3259](https://github.com/atinc/ngx-tethys/issues/3259)) ([30c7927](https://github.com/atinc/ngx-tethys/commit/30c7927865eebff3d89a33e2fedf8df7a83a2b51)), closes [#TINFR-1020](https://github.com/atinc/ngx-tethys/issues/TINFR-1020)
|
|
11
|
+
* **calendar:** support i18n #TINFR-962 ([#3244](https://github.com/atinc/ngx-tethys/issues/3244)) ([4cac6df](https://github.com/atinc/ngx-tethys/commit/4cac6df016b12dc57ed3bed5f3c9090060ffa007)), closes [#TINFR-962](https://github.com/atinc/ngx-tethys/issues/TINFR-962)
|
|
12
|
+
* **cascader:** support i18n #TINFR-967 ([#3248](https://github.com/atinc/ngx-tethys/issues/3248)) ([fc5fa48](https://github.com/atinc/ngx-tethys/commit/fc5fa485d9e4cefd495f89779baf52afdcde733f)), closes [#TINFR-967](https://github.com/atinc/ngx-tethys/issues/TINFR-967)
|
|
13
|
+
* **colorPicker:** support i18n #TINFR-965 ([#3246](https://github.com/atinc/ngx-tethys/issues/3246)) ([3b23810](https://github.com/atinc/ngx-tethys/commit/3b238103a23e26000ee20a2e0ad021df34d542a2)), closes [#TINFR-965](https://github.com/atinc/ngx-tethys/issues/TINFR-965)
|
|
14
|
+
* **copy:** support i18n #TINFR-961 ([#3243](https://github.com/atinc/ngx-tethys/issues/3243)) ([f648460](https://github.com/atinc/ngx-tethys/commit/f6484600a99151b862b118b4b15e6d0818277364)), closes [#TINFR-961](https://github.com/atinc/ngx-tethys/issues/TINFR-961)
|
|
15
|
+
* **date-picker:** support i18n #TINFR-917 ([#3254](https://github.com/atinc/ngx-tethys/issues/3254)) ([5928b79](https://github.com/atinc/ngx-tethys/commit/5928b790adc5e38cdb6d2037eb59cfd0c9b85804)), closes [#TINFR-917](https://github.com/atinc/ngx-tethys/issues/TINFR-917)
|
|
16
|
+
* **date-range:** support i18n #TINFR-968 ([#3256](https://github.com/atinc/ngx-tethys/issues/3256)) ([f6bd62e](https://github.com/atinc/ngx-tethys/commit/f6bd62e465c28cba57205ba5a773b6df6f7c579c)), closes [#TINFR-968](https://github.com/atinc/ngx-tethys/issues/TINFR-968)
|
|
17
|
+
* **dialog:** support i18n #TINFR-973 ([#3266](https://github.com/atinc/ngx-tethys/issues/3266)) ([194f20b](https://github.com/atinc/ngx-tethys/commit/194f20b4ccd1f936767f0ee1ba497fd13a403769)), closes [#TINFR-973](https://github.com/atinc/ngx-tethys/issues/TINFR-973)
|
|
18
|
+
* **empty:** support i18n #TINFR-972 ([#3262](https://github.com/atinc/ngx-tethys/issues/3262)) ([310a686](https://github.com/atinc/ngx-tethys/commit/310a686ed83192b70660a4127bf20b08e7890349)), closes [#TINFR-972](https://github.com/atinc/ngx-tethys/issues/TINFR-972)
|
|
19
|
+
* **form:** support i18n #TINFR-970 ([#3255](https://github.com/atinc/ngx-tethys/issues/3255)) ([29c82b1](https://github.com/atinc/ngx-tethys/commit/29c82b18656da38c8bca23d3d37a0e2f2c860e1e)), closes [#TINFR-970](https://github.com/atinc/ngx-tethys/issues/TINFR-970)
|
|
20
|
+
* **guider:** support i18n #TINFR-960 ([#3245](https://github.com/atinc/ngx-tethys/issues/3245)) ([c6ad04b](https://github.com/atinc/ngx-tethys/commit/c6ad04b529449cba359108bf84ed40a017fdb6c4)), closes [#TINFR-960](https://github.com/atinc/ngx-tethys/issues/TINFR-960)
|
|
21
|
+
* **i18n:** i18n design and review #TINFR-916 ([#3242](https://github.com/atinc/ngx-tethys/issues/3242)) ([f829685](https://github.com/atinc/ngx-tethys/commit/f829685f61a850eb19fdd0be2f868a0e896779cb)), closes [#TINFR-916](https://github.com/atinc/ngx-tethys/issues/TINFR-916)
|
|
22
|
+
* **pagination:** support i18n #TINFR-969 ([#3252](https://github.com/atinc/ngx-tethys/issues/3252)) ([60518c4](https://github.com/atinc/ngx-tethys/commit/60518c43a365601c5987edbc89c7dc980d9c65a5)), closes [#TINFR-969](https://github.com/atinc/ngx-tethys/issues/TINFR-969)
|
|
23
|
+
* **select:** support i18n #TINFR-963 ([#3250](https://github.com/atinc/ngx-tethys/issues/3250)) ([794c6ac](https://github.com/atinc/ngx-tethys/commit/794c6ac23e2bd84aaf0d729837b46e3e68774aa9)), closes [#TINFR-963](https://github.com/atinc/ngx-tethys/issues/TINFR-963)
|
|
24
|
+
* **strength:** support i18n #TINFR-971 ([#3251](https://github.com/atinc/ngx-tethys/issues/3251)) ([5260729](https://github.com/atinc/ngx-tethys/commit/5260729a0721d4fb965c576c404a9dc7695c4aa7)), closes [#TINFR-971](https://github.com/atinc/ngx-tethys/issues/TINFR-971)
|
|
25
|
+
* **time-picker:** support i18n #TINFR-1001 ([#3247](https://github.com/atinc/ngx-tethys/issues/3247)) ([5c05293](https://github.com/atinc/ngx-tethys/commit/5c05293706fcfc5f7af5433171f8601c9373f816)), closes [#TINFR-1001](https://github.com/atinc/ngx-tethys/issues/TINFR-1001)
|
|
26
|
+
* **tree-select:** support i18n #TINFR-964 ([#3249](https://github.com/atinc/ngx-tethys/issues/3249)) ([8728887](https://github.com/atinc/ngx-tethys/commit/8728887bf238dc1c12ae3c1f5b216bd4818206f1)), closes [#TINFR-964](https://github.com/atinc/ngx-tethys/issues/TINFR-964)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
5
30
|
## [18.1.1](https://github.com/atinc/ngx-tethys/compare/18.1.0...18.1.1) (2024-11-20)
|
|
6
31
|
|
|
7
32
|
|
|
@@ -17,6 +42,17 @@ All notable changes to this project will be documented in this file. See [commit
|
|
|
17
42
|
|
|
18
43
|
|
|
19
44
|
|
|
45
|
+
# [18.2.0-next.0](https://github.com/atinc/ngx-tethys/compare/18.1.0...18.2.0-next.0) (2024-11-14)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **core:** support projectableNodes for ThyAbstractOverlayConfig and rename ThyStealthViewDirective to ThyStealthView #TINFR-651 ([#3230](https://github.com/atinc/ngx-tethys/issues/3230)) ([f838b96](https://github.com/atinc/ngx-tethys/commit/f838b967ae2066790617f1ace6729d4ea4025369)), closes [#TINFR-651](https://github.com/atinc/ngx-tethys/issues/TINFR-651)
|
|
51
|
+
* **drag-drop:** mark drag-drop as deprecated #TINFR-438 ([#3231](https://github.com/atinc/ngx-tethys/issues/3231)) ([7497858](https://github.com/atinc/ngx-tethys/commit/7497858e449a5d217c3117432db3648f27766e52)), closes [#TINFR-438](https://github.com/atinc/ngx-tethys/issues/TINFR-438)
|
|
52
|
+
* support dark theme for all components #TINFR-950 ([#3238](https://github.com/atinc/ngx-tethys/issues/3238)) ([0f325bb](https://github.com/atinc/ngx-tethys/commit/0f325bb330ffc5586c5c99bdaf98011cb1ced61a)), closes [#TINFR-950](https://github.com/atinc/ngx-tethys/issues/TINFR-950)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
20
56
|
# [18.1.0](https://github.com/atinc/ngx-tethys/compare/18.1.0-next.1...18.1.0) (2024-10-31)
|
|
21
57
|
|
|
22
58
|
|
package/alert/styles/mixin.scss
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
@mixin thy-alert-bordered-variant($color) {
|
|
21
21
|
color: variables.$gray-600;
|
|
22
|
-
background: variables.$
|
|
22
|
+
background: variables.$bg-default;
|
|
23
23
|
border-color: variables.$gray-200 variables.$gray-200 variables.$gray-200 $color;
|
|
24
24
|
border-left-width: 2px;
|
|
25
25
|
@include thy-alert-inner($color);
|
package/anchor/style/anchor.scss
CHANGED
|
@@ -10,7 +10,7 @@ $anchor-border-width: 2px;
|
|
|
10
10
|
margin-block-start: -4px;
|
|
11
11
|
padding-block-start: 4px;
|
|
12
12
|
overflow: auto;
|
|
13
|
-
background-color: variables.$
|
|
13
|
+
background-color: variables.$bg-default;
|
|
14
14
|
|
|
15
15
|
&:not(&-horizontal) {
|
|
16
16
|
.thy-anchor {
|
|
@@ -69,7 +69,9 @@ $anchor-border-width: 2px;
|
|
|
69
69
|
position: absolute;
|
|
70
70
|
bottom: 0;
|
|
71
71
|
border-top: $anchor-border-width solid variables.$primary;
|
|
72
|
-
transition:
|
|
72
|
+
transition:
|
|
73
|
+
left 0.2s ease-in-out,
|
|
74
|
+
width 0.2s ease-in-out;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
&-link {
|
|
@@ -19,6 +19,7 @@ export declare class ThyAutocomplete implements IThyOptionParentComponent, OnIni
|
|
|
19
19
|
private ngZone;
|
|
20
20
|
private changeDetectorRef;
|
|
21
21
|
private ngUnsubscribe$;
|
|
22
|
+
private locale;
|
|
22
23
|
dropDownClass: {
|
|
23
24
|
[key: string]: boolean;
|
|
24
25
|
};
|
|
@@ -38,7 +39,7 @@ export declare class ThyAutocomplete implements IThyOptionParentComponent, OnIni
|
|
|
38
39
|
readonly optionSelectionChanges: Observable<ThyOptionSelectionChangeEvent>;
|
|
39
40
|
/**
|
|
40
41
|
* 空选项时的文本
|
|
41
|
-
* @
|
|
42
|
+
* @default 没有任何数据
|
|
42
43
|
*/
|
|
43
44
|
thyEmptyText: string;
|
|
44
45
|
/**
|
|
@@ -20,15 +20,15 @@ $back-top-width: 36px;
|
|
|
20
20
|
width: $back-top-width;
|
|
21
21
|
height: $back-top-width;
|
|
22
22
|
overflow: hidden;
|
|
23
|
-
background-color: variables.$
|
|
23
|
+
background-color: variables.$bg-float;
|
|
24
24
|
border-radius: 50%;
|
|
25
25
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
26
|
-
box-shadow:
|
|
26
|
+
box-shadow: variables.$float-btn-box-shadow;
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
&:hover {
|
|
31
|
-
box-shadow:
|
|
31
|
+
box-shadow: variables.$float-btn-hover-box-shadow;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
8
|
-
@use
|
|
1
|
+
@use '../../styles/bootstrap/mixins/border-radius';
|
|
2
|
+
@use '../../styles/mixins/hover';
|
|
3
|
+
@use '../../styles/bootstrap/functions-variables';
|
|
4
|
+
@use '../../styles/bootstrap/variables' as bootstrap-variables;
|
|
5
|
+
@use '../../styles/mixins/shadow';
|
|
6
|
+
@use '../../styles/variables';
|
|
7
|
+
@use './button.scss';
|
|
8
|
+
@use 'mixin';
|
|
9
9
|
// stylelint-disable selector-no-qualifying-type
|
|
10
10
|
|
|
11
11
|
// Make the div behave like a button
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
// The clickable button for toggling the menu
|
|
163
163
|
// Set the same inset shadow as the :active state
|
|
164
164
|
.btn-group.show .dropdown-toggle {
|
|
165
|
-
@include shadow.box-shadow(
|
|
165
|
+
@include shadow.box-shadow(variables.$btn-active-box-shadow);
|
|
166
166
|
|
|
167
167
|
// Show no shadow for `.btn-link` since it has no other button styles.
|
|
168
168
|
&.btn-link {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
&:focus,
|
|
54
54
|
&.focus {
|
|
55
|
-
outline: 0;
|
|
55
|
+
outline: 0;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Disabled comes first so active can properly restyle
|
|
@@ -73,10 +73,6 @@
|
|
|
73
73
|
&:not(:disabled):not(.disabled):active,
|
|
74
74
|
&:not(:disabled):not(.disabled).active {
|
|
75
75
|
background-image: none;
|
|
76
|
-
// @include box-shadow($btn-active-box-shadow);
|
|
77
|
-
// &:focus {
|
|
78
|
-
// @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
|
79
|
-
// }
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
&:not(:disabled):not(.disabled).loading {
|
|
@@ -206,7 +202,7 @@ fieldset:disabled a.btn {
|
|
|
206
202
|
&.focus {
|
|
207
203
|
text-decoration: variables.$link-hover-decoration;
|
|
208
204
|
border-color: transparent;
|
|
209
|
-
box-shadow: none;
|
|
205
|
+
box-shadow: variables.$box-shadow-none;
|
|
210
206
|
}
|
|
211
207
|
|
|
212
208
|
&.disabled,
|
package/button/styles/mixin.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../styles/bootstrap/mixins/gradients';
|
|
3
|
+
@use '../../styles/mixins/hover';
|
|
4
|
+
@use '../../styles/bootstrap/variables' as bootstrap-variables;
|
|
5
|
+
@use '../../styles/mixins/shadow';
|
|
6
|
+
@use '../../styles/variables';
|
|
7
7
|
|
|
8
8
|
// Button variants
|
|
9
9
|
//
|
|
@@ -19,27 +19,15 @@
|
|
|
19
19
|
$active-background: color.adjust($background, $lightness: -10%),
|
|
20
20
|
$active-border: color.adjust($border, $lightness: -12.5%)
|
|
21
21
|
) {
|
|
22
|
-
// color: color-yiq($background);
|
|
23
22
|
color: $color;
|
|
24
23
|
@include gradients.gradient-bg($background);
|
|
25
24
|
border-color: $border;
|
|
26
25
|
@include hover.hover {
|
|
27
|
-
// color: color-yiq($hover-background);
|
|
28
26
|
color: $hover-color;
|
|
29
27
|
@include gradients.gradient-bg($hover-background);
|
|
30
28
|
border-color: $hover-border;
|
|
31
29
|
@include shadow.box-shadow(variables.$btn-box-shadow);
|
|
32
30
|
}
|
|
33
|
-
&:focus,
|
|
34
|
-
&.focus {
|
|
35
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
36
|
-
// @if $enable-shadows {
|
|
37
|
-
// box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
|
38
|
-
// }
|
|
39
|
-
// @else {
|
|
40
|
-
// box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
|
41
|
-
// }
|
|
42
|
-
} // Disabled comes first so active can properly restyle
|
|
43
31
|
&.disabled,
|
|
44
32
|
&:disabled {
|
|
45
33
|
&:hover {
|
|
@@ -47,25 +35,6 @@
|
|
|
47
35
|
}
|
|
48
36
|
@include button-disabled(variables.$btn-disabled-border-color);
|
|
49
37
|
}
|
|
50
|
-
&:not(:disabled):not(.disabled):active,
|
|
51
|
-
&:not(:disabled):not(.disabled).active,
|
|
52
|
-
.show > &.dropdown-toggle {
|
|
53
|
-
// color: color-yiq($active-background);
|
|
54
|
-
// background-color: $active-background;
|
|
55
|
-
// @if $enable-gradients {
|
|
56
|
-
// background-image: none; // Remove the gradient for the pressed/active state
|
|
57
|
-
// }
|
|
58
|
-
// border-color: $active-border;
|
|
59
|
-
&:focus {
|
|
60
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
61
|
-
// @if $enable-shadows {
|
|
62
|
-
// box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
|
|
63
|
-
// }
|
|
64
|
-
// @else {
|
|
65
|
-
// box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
|
|
66
|
-
// }
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
38
|
}
|
|
70
39
|
|
|
71
40
|
@mixin button-outline-variant($color, $border-color, $hover-color, $hover-background, $hover-border, $active-background, $active-border) {
|
|
@@ -78,10 +47,6 @@
|
|
|
78
47
|
background-color: $hover-background;
|
|
79
48
|
border-color: $hover-border;
|
|
80
49
|
}
|
|
81
|
-
&:focus,
|
|
82
|
-
&.focus {
|
|
83
|
-
// box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
|
84
|
-
}
|
|
85
50
|
&.disabled,
|
|
86
51
|
&:disabled {
|
|
87
52
|
&:hover {
|
|
@@ -95,15 +60,6 @@
|
|
|
95
60
|
color: $hover-color;
|
|
96
61
|
background-color: $active-background;
|
|
97
62
|
border-color: $active-border;
|
|
98
|
-
&:focus {
|
|
99
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
100
|
-
// @if $enable-shadows and $btn-active-box-shadow !=none {
|
|
101
|
-
// box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5);
|
|
102
|
-
// }
|
|
103
|
-
// @else {
|
|
104
|
-
// box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
|
|
105
|
-
// }
|
|
106
|
-
}
|
|
107
63
|
}
|
|
108
64
|
}
|
|
109
65
|
|
|
@@ -131,7 +87,6 @@
|
|
|
131
87
|
|
|
132
88
|
@mixin button-hover-box-shadow($color) {
|
|
133
89
|
&:hover {
|
|
134
|
-
// lighten($primary-active-theme, 15%)
|
|
135
90
|
@include shadow.box-shadow(0px 2px 5px 1px rgba($color, 0.6));
|
|
136
91
|
}
|
|
137
92
|
}
|
|
@@ -141,8 +96,6 @@
|
|
|
141
96
|
color: variables.$btn-disabled-color;
|
|
142
97
|
background-color: variables.$btn-disabled-bg-color;
|
|
143
98
|
border-color: $color;
|
|
144
|
-
// border-color: $btn-disabled-border-color;
|
|
145
|
-
// border: none;
|
|
146
99
|
}
|
|
147
100
|
|
|
148
101
|
@include shadow.box-shadow(none);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '../../styles/variables';
|
|
2
2
|
|
|
3
3
|
$calendar-full-prefix-cls: 'thy-calendar-full';
|
|
4
4
|
|
|
@@ -24,8 +24,8 @@ $calendar-full-prefix-cls: 'thy-calendar-full';
|
|
|
24
24
|
position: absolute;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
box-shadow:
|
|
28
|
-
background: variables.$
|
|
27
|
+
box-shadow: variables.$calendar-active-box-shadow;
|
|
28
|
+
background: variables.$bg-default;
|
|
29
29
|
width: 100%;
|
|
30
30
|
min-height: 100%;
|
|
31
31
|
z-index: 2;
|
|
@@ -52,14 +52,6 @@ $calendar-full-prefix-cls: 'thy-calendar-full';
|
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.#{$calendar-full-prefix-cls}-selected-day {
|
|
56
|
-
// background: $gray-80;
|
|
57
|
-
// border-color: $primary;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.#{$calendar-full-prefix-cls}-date-value-text {
|
|
61
|
-
}
|
|
62
|
-
|
|
63
55
|
.#{$calendar-full-prefix-cls}-today {
|
|
64
56
|
.#{$calendar-full-prefix-cls}-date-value-today-text {
|
|
65
57
|
width: 24px;
|
package/card/styles/card.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use '../../styles/variables';
|
|
2
|
+
@use 'mixin';
|
|
3
3
|
|
|
4
4
|
.thy-card {
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
background: variables.$
|
|
7
|
+
background: variables.$bg-default;
|
|
8
8
|
border-radius: variables.$card-border-radius;
|
|
9
9
|
|
|
10
10
|
.thy-card-header {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@use '../../styles/variables';
|
|
2
|
-
@use './variables' as vars;
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
$carousel-prefix-cls: 'thy-carousel';
|
|
4
|
+
|
|
5
|
+
#{$carousel-prefix-cls} {
|
|
5
6
|
margin-left: auto;
|
|
6
7
|
margin-right: auto;
|
|
7
8
|
position: relative;
|
|
8
|
-
//overflow: hidden;
|
|
9
9
|
padding: 0;
|
|
10
10
|
z-index: 1;
|
|
11
11
|
.thy-carousel-initialized {
|
|
@@ -62,16 +62,16 @@
|
|
|
62
62
|
cursor: variables.$hand-cursor;
|
|
63
63
|
&:hover {
|
|
64
64
|
thy-dot {
|
|
65
|
-
|
|
65
|
+
border-color: variables.$white;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
thy-dot {
|
|
69
69
|
transition: 0.3s opacity;
|
|
70
|
-
color: variables.$
|
|
71
|
-
|
|
70
|
+
border-color: variables.$carousel-dot-bg-color;
|
|
71
|
+
|
|
72
72
|
&:hover,
|
|
73
73
|
&.active {
|
|
74
|
-
|
|
74
|
+
border-color: variables.$white;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
transform: translateY(-50%);
|
|
83
83
|
z-index: 200;
|
|
84
84
|
cursor: variables.$hand-cursor;
|
|
85
|
-
color: variables.$
|
|
85
|
+
color: variables.$white;
|
|
86
86
|
user-select: none;
|
|
87
87
|
overflow: hidden;
|
|
88
88
|
width: 32px;
|
|
89
89
|
height: 32px;
|
|
90
90
|
transition: 0.3s background;
|
|
91
|
-
background:
|
|
91
|
+
background: variables.$carousel-control-bg-color;
|
|
92
92
|
border-radius: 50%;
|
|
93
93
|
thy-icon {
|
|
94
94
|
position: absolute;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
font-size: 22px;
|
|
100
100
|
}
|
|
101
101
|
&:hover {
|
|
102
|
-
background:
|
|
102
|
+
background: variables.$carousel-control-hover-bg-color;
|
|
103
103
|
}
|
|
104
104
|
&-pre {
|
|
105
105
|
left: 12px;
|
|
@@ -21,11 +21,12 @@ $cascader-menu-min-width: 122px;
|
|
|
21
21
|
}
|
|
22
22
|
&-menus {
|
|
23
23
|
font-size: 14px;
|
|
24
|
-
background: variables.$
|
|
24
|
+
background: variables.$bg-panel;
|
|
25
25
|
position: relative;
|
|
26
26
|
z-index: 1050;
|
|
27
27
|
border-radius: 4px;
|
|
28
|
-
|
|
28
|
+
border: 1px solid variables.$gray-200;
|
|
29
|
+
box-shadow: variables.$box-shadow;
|
|
29
30
|
white-space: nowrap;
|
|
30
31
|
margin-top: 4px;
|
|
31
32
|
margin-bottom: 4px;
|
|
@@ -20,7 +20,9 @@ $thy-collapse-prefix-cls: 'thy-collapse';
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
position: relative;
|
|
22
22
|
cursor: variables.$hand-cursor;
|
|
23
|
-
transition:
|
|
23
|
+
transition:
|
|
24
|
+
all 0.3s,
|
|
25
|
+
visibility 0s;
|
|
24
26
|
.#{$thy-collapse-prefix-cls}-title {
|
|
25
27
|
flex: 1;
|
|
26
28
|
font-size: variables.$collapse-header-font-size;
|
|
@@ -43,7 +45,7 @@ $thy-collapse-prefix-cls: 'thy-collapse';
|
|
|
43
45
|
}
|
|
44
46
|
.#{$thy-collapse-prefix-cls}-content {
|
|
45
47
|
border-top: 1px solid variables.$gray-200;
|
|
46
|
-
background-color: variables.$
|
|
48
|
+
background-color: variables.$bg-default;
|
|
47
49
|
&-box {
|
|
48
50
|
padding: 0px variables.$collapse-spacing-x (variables.$collapse-spacing-y + 4) variables.$collapse-spacing-x;
|
|
49
51
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { ThyPopoverRef } from 'ngx-tethys/popover';
|
|
3
3
|
import { ThyColorPickerCustomPanel } from './color-picker-custom-panel.component';
|
|
4
|
+
import { ThyColorPickerLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
@@ -9,6 +10,7 @@ export declare class ThyColorPickerPanel implements OnInit {
|
|
|
9
10
|
private thyPopover;
|
|
10
11
|
private viewContainerRef;
|
|
11
12
|
private thyPopoverRef;
|
|
13
|
+
locale: Signal<ThyColorPickerLocale>;
|
|
12
14
|
className: boolean;
|
|
13
15
|
color: string;
|
|
14
16
|
colorChange: (color: string) => {};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
border: variables.$comment-actions-border;
|
|
14
14
|
border-radius: variables.$comment-actions-border-radius;
|
|
15
15
|
box-shadow: variables.$box-shadow;
|
|
16
|
-
background-color: variables.$
|
|
16
|
+
background-color: variables.$bg-panel;
|
|
17
17
|
cursor: variables.$hand-cursor;
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
visibility: hidden;
|
package/copy/copy.directive.d.ts
CHANGED
package/core/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './event-dispatchers/index';
|
|
|
5
5
|
export * from './request-animation';
|
|
6
6
|
export * from './scroll';
|
|
7
7
|
export * from './animation';
|
|
8
|
+
export * from './theme';
|
|
8
9
|
export * from './overlay/index';
|
|
9
10
|
export * from './update-host-class.service';
|
|
10
11
|
export * from './translate';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { ThyTheme } from './theme';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ThyThemeStore {
|
|
5
|
+
readonly theme: import("@angular/core").WritableSignal<ThyTheme>;
|
|
6
|
+
readonly isDark: Signal<boolean>;
|
|
7
|
+
constructor();
|
|
8
|
+
setTheme(theme: ThyTheme): void;
|
|
9
|
+
normalizeColor(color: string | string[]): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThyThemeStore, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThyThemeStore>;
|
|
12
|
+
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
2
2
|
import { TinyDate } from 'ngx-tethys/util';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, Signal, SimpleChanges } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { CompatibleValue, RangeAdvancedValue } from './inner-types';
|
|
7
7
|
import { ThyPicker } from './picker.component';
|
|
8
8
|
import { CompatibleDate, DateEntry, DisabledDateFn, ThyDateRangeEntry, ThyPanelMode, ThyShortcutPosition, CompatiblePresets, ThyDateGranularity, ThyDateChangeEvent } from './standard-types';
|
|
9
|
+
import { ThyDatePickerLocale } from 'ngx-tethys/i18n';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* @private
|
|
12
13
|
*/
|
|
13
14
|
export declare abstract class AbstractPickerComponent extends TabIndexDisabledControlValueAccessorMixin implements OnInit, OnChanges, OnDestroy, ControlValueAccessor {
|
|
14
15
|
cdr: ChangeDetectorRef;
|
|
16
|
+
locale: Signal<ThyDatePickerLocale>;
|
|
15
17
|
thyValue: CompatibleValue | null;
|
|
16
18
|
_panelMode: ThyPanelMode;
|
|
17
19
|
private datePickerConfigService;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { ThyI18nLocale } from 'ngx-tethys/i18n';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export declare function DATE_HELPER_SERVICE_FACTORY(): DateHelperService;
|
|
3
5
|
/**
|
|
4
6
|
* @private
|
|
5
7
|
*/
|
|
6
8
|
export declare abstract class DateHelperService {
|
|
9
|
+
locale: Signal<ThyI18nLocale>;
|
|
7
10
|
relyOnDatePipe: boolean;
|
|
8
11
|
abstract getISOWeek(date: Date): number;
|
|
9
12
|
abstract format(date: Date, formatStr: string): string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { WeekDayIndex } from 'ngx-tethys/util';
|
|
3
3
|
import { CompatiblePresets, ThyShortcutPosition } from './standard-types';
|
|
4
|
+
import { ThyI18nService } from 'ngx-tethys/i18n';
|
|
4
5
|
export interface ThyDatePickerConfig {
|
|
5
6
|
shortcutPosition: ThyShortcutPosition;
|
|
6
7
|
shortcutDatePresets: CompatiblePresets;
|
|
@@ -9,9 +10,14 @@ export interface ThyDatePickerConfig {
|
|
|
9
10
|
weekStartsOn: WeekDayIndex;
|
|
10
11
|
timestampPrecision: 'seconds' | 'milliseconds';
|
|
11
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
12
16
|
export declare const DEFAULT_DATE_PICKER_CONFIG: ThyDatePickerConfig;
|
|
13
17
|
export declare const THY_DATE_PICKER_CONFIG: InjectionToken<ThyDatePickerConfig>;
|
|
18
|
+
export declare function useDatePickerDefaultConfig(): ThyDatePickerConfig;
|
|
14
19
|
export declare const THY_DATE_PICKER_CONFIG_PROVIDER: {
|
|
15
20
|
provide: InjectionToken<ThyDatePickerConfig>;
|
|
16
|
-
|
|
21
|
+
useFactory: typeof useDatePickerDefaultConfig;
|
|
22
|
+
deps: (typeof ThyI18nService)[];
|
|
17
23
|
};
|