ngx-register-base 1.3.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/esm2022/lib/components/checkbox-selector/checkbox-selector.component.mjs +3 -3
- package/esm2022/lib/components/column-settings/column-settings.component.mjs +30 -25
- package/esm2022/lib/components/column-settings/components/column-settings-template/column-settings-template.component.mjs +4 -12
- package/esm2022/lib/components/column-settings/components/reset-settings-form/reset-settings-form.component.mjs +13 -0
- package/esm2022/lib/components/column-settings/consts/column-settings.consts.mjs +9 -9
- package/esm2022/lib/components/filter-button/filter-button.component.mjs +4 -5
- package/esm2022/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.mjs +22 -22
- package/esm2022/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.mjs +9 -6
- package/esm2022/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.mjs +13 -8
- package/esm2022/lib/components/filters/components/filter-list/filter-list-saved/filter-list-saved.component.mjs +4 -4
- package/esm2022/lib/components/filters/components/filter-list/filter-list.service.mjs +16 -13
- package/esm2022/lib/components/filters/components/filter-list/filters-section/filters-section.component.mjs +4 -4
- package/esm2022/lib/components/filters/components/filter-list.module.mjs +33 -7
- package/esm2022/lib/components/filters/register-table-filter.component.mjs +5 -4
- package/esm2022/lib/components/filters/register-table-filter.module.mjs +5 -5
- package/esm2022/lib/components/index.mjs +2 -2
- package/esm2022/lib/components/inputs/index.mjs +4 -4
- package/esm2022/lib/components/inputs/param-calendar-year/param-calendar-year.component.mjs +37 -30
- package/esm2022/lib/components/inputs/param-custom/param-custom.component.mjs +3 -3
- package/esm2022/lib/components/inputs/param-date/param-date.component.mjs +27 -15
- package/esm2022/lib/components/inputs/param-date-range/index.mjs +2 -0
- package/esm2022/lib/components/inputs/param-date-range/param-date-range.component.mjs +80 -18
- package/esm2022/lib/components/inputs/param-date-time/param-date-time.component.mjs +65 -30
- package/esm2022/lib/components/inputs/param-date-time-range/date-time-range/date-time-range.component.mjs +406 -0
- package/esm2022/lib/components/inputs/param-date-time-range/date-time-range/date-time-range.consts.mjs +13 -0
- package/esm2022/lib/components/inputs/param-date-time-range/param-date-time-range.component.mjs +31 -34
- package/esm2022/lib/components/inputs/param-dropbox/param-dropbox.component.mjs +126 -0
- package/esm2022/lib/components/inputs/param-month/param-month.component.mjs +40 -9
- package/esm2022/lib/components/inputs/param-month-range/param-month-range.component.mjs +29 -8
- package/esm2022/lib/components/inputs/param-multi-select/param-multi-select.component.mjs +97 -113
- package/esm2022/lib/components/inputs/param-select/param-select.component.mjs +41 -45
- package/esm2022/lib/components/inputs/param-switcher/index.mjs +2 -0
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.component.mjs +61 -11
- package/esm2022/lib/components/inputs/param-switcher/param-switcher.types.mjs +2 -0
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.mjs +7 -25
- package/esm2022/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.mjs +21 -20
- package/esm2022/lib/components/inputs/param-text/param-text.component.mjs +11 -6
- package/esm2022/lib/components/inputs/param-textarea/param-textarea.component.mjs +5 -3
- package/esm2022/lib/components/inputs/param-toggle/param-toggle.component.mjs +24 -7
- package/esm2022/lib/components/inputs/param-tree/param-tree.component.mjs +3 -3
- package/esm2022/lib/components/inputs/param-tree/services/param-tree.service.mjs +9 -2
- package/esm2022/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.mjs +13 -6
- package/esm2022/lib/components/inputs/param-tree-select/param-tree-select.component.mjs +9 -4
- package/esm2022/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.mjs +9 -5
- package/esm2022/lib/components/inputs/sub-components/param-label-hint-icon/param-label-hint-icon.component.mjs +12 -0
- package/esm2022/lib/components/paginator/paginator.component.mjs +10 -12
- package/esm2022/lib/components/register-table/register-table.component.mjs +31 -12
- package/esm2022/lib/components/search-input/search-input.component.mjs +5 -7
- package/esm2022/lib/components/sliding-panel/sliding-panel.component.mjs +23 -35
- package/esm2022/lib/components/template-modal/index.mjs +3 -0
- package/esm2022/lib/components/template-modal/template-modal.base.mjs +16 -0
- package/esm2022/lib/components/template-modal/template-modal.component.mjs +16 -0
- package/esm2022/lib/core/param/index.mjs +1 -1
- package/esm2022/lib/core/param/param-base.mjs +28 -3
- package/esm2022/lib/core/param/param-date-base.mjs +20 -11
- package/esm2022/lib/core/param/param-select-base.mjs +14 -6
- package/esm2022/lib/core/register-base/register-base.store.mjs +1 -1
- package/esm2022/lib/directives/date/date-time.types.mjs +1 -1
- package/esm2022/lib/providers/index.mjs +2 -0
- package/esm2022/lib/providers/provide-icons.mjs +23 -0
- package/esm2022/lib/services/date-time.service.mjs +1 -38
- package/esm2022/lib/services/dialog/dialog.service.mjs +1 -13
- package/esm2022/lib/services/dialog/dialog.types.mjs +2 -2
- package/esm2022/lib/services/message.service.mjs +48 -0
- package/esm2022/lib/services/validation-message.service.mjs +52 -0
- package/esm2022/lib/store/fast-query-store.service.mjs +16 -1
- package/esm2022/lib/utils/index.mjs +2 -1
- package/esm2022/lib/utils/utils.mjs +17 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ngx-register-base.mjs +1464 -1026
- package/fesm2022/ngx-register-base.mjs.map +1 -1
- package/icons/arrow-turn-up-left.svg +3 -0
- package/icons/check.svg +3 -0
- package/icons/floppy.svg +3 -0
- package/icons/star-empty.svg +10 -0
- package/icons/star-fill.svg +3 -0
- package/icons/trash.svg +3 -0
- package/icons/xmark.svg +3 -0
- package/lib/components/column-settings/column-settings.component.d.ts +9 -9
- package/lib/components/column-settings/components/column-settings-template/column-settings-template.component.d.ts +5 -5
- package/lib/components/{reset-settings-form → column-settings/components/reset-settings-form}/reset-settings-form.component.d.ts +2 -5
- package/lib/components/column-settings/consts/column-settings.consts.d.ts +8 -8
- package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts +5 -8
- package/lib/components/filters/components/filter-list/filter-list-footer/filter-list-footer.component.d.ts +2 -1
- package/lib/components/filters/components/filter-list/filter-list-header/filter-list-header.component.d.ts +2 -1
- package/lib/components/filters/components/filter-list/filter-list.service.d.ts +2 -3
- package/lib/components/filters/components/filter-list.module.d.ts +7 -7
- package/lib/components/filters/register-table-filter.component.d.ts +2 -1
- package/lib/components/filters/register-table-filter.module.d.ts +2 -2
- package/lib/components/index.d.ts +1 -1
- package/lib/components/inputs/index.d.ts +3 -4
- package/lib/components/inputs/param-calendar-year/param-calendar-year.component.d.ts +2 -8
- package/lib/components/inputs/param-custom/param-custom.component.d.ts +1 -1
- package/lib/components/inputs/param-date/param-date.component.d.ts +7 -10
- package/lib/components/inputs/param-date-range/index.d.ts +1 -0
- package/lib/components/inputs/param-date-range/param-date-range.component.d.ts +13 -16
- package/lib/components/inputs/param-date-time/param-date-time.component.d.ts +8 -13
- package/lib/components/inputs/param-date-time-range/date-time-range/date-time-range.component.d.ts +96 -0
- package/lib/components/inputs/param-date-time-range/date-time-range/date-time-range.consts.d.ts +12 -0
- package/lib/components/inputs/param-date-time-range/param-date-time-range.component.d.ts +17 -16
- package/lib/components/inputs/param-dropbox/param-dropbox.component.d.ts +31 -0
- package/lib/components/inputs/param-month/param-month.component.d.ts +10 -8
- package/lib/components/inputs/param-month-range/param-month-range.component.d.ts +10 -8
- package/lib/components/inputs/param-multi-select/param-multi-select.component.d.ts +9 -11
- package/lib/components/inputs/param-select/param-select.component.d.ts +9 -12
- package/lib/components/inputs/param-switcher/index.d.ts +2 -0
- package/lib/components/inputs/param-switcher/param-switcher.component.d.ts +21 -5
- package/lib/components/inputs/param-switcher/param-switcher.types.d.ts +7 -0
- package/lib/components/inputs/param-switcher-date-time-range/consts/param-switcher-date-time-range.consts.d.ts +3 -2
- package/lib/components/inputs/param-switcher-date-time-range/param-switcher-date-time-range.component.d.ts +5 -4
- package/lib/components/inputs/param-text/param-text.component.d.ts +6 -4
- package/lib/components/inputs/param-textarea/param-textarea.component.d.ts +2 -1
- package/lib/components/inputs/param-toggle/param-toggle.component.d.ts +3 -2
- package/lib/components/inputs/param-tree/services/param-tree.service.d.ts +1 -1
- package/lib/components/inputs/param-tree-multi-select/param-tree-multi-select.component.d.ts +2 -1
- package/lib/components/inputs/sub-components/param-invalid-icon/param-invalid-icon.component.d.ts +2 -1
- package/lib/components/inputs/sub-components/param-label-hint-icon/param-label-hint-icon.component.d.ts +5 -0
- package/lib/components/paginator/paginator.component.d.ts +3 -4
- package/lib/components/register-table/register-table.component.d.ts +5 -3
- package/lib/components/sliding-panel/sliding-panel.component.d.ts +8 -8
- package/lib/components/template-modal/index.d.ts +2 -0
- package/lib/components/template-modal/template-modal.base.d.ts +9 -0
- package/lib/components/template-modal/template-modal.component.d.ts +6 -0
- package/lib/core/param/index.d.ts +1 -0
- package/lib/core/param/param-base.d.ts +18 -2
- package/lib/core/param/param-date-base.d.ts +15 -9
- package/lib/core/param/param-select-base.d.ts +12 -7
- package/lib/core/register-base/register-base.store.d.ts +2 -3
- package/lib/directives/date/date-time.types.d.ts +0 -2
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/provide-icons.d.ts +3 -0
- package/lib/services/date-time.service.d.ts +0 -13
- package/lib/services/dialog/dialog.service.d.ts +1 -3
- package/lib/services/dialog/dialog.types.d.ts +0 -3
- package/lib/services/message.service.d.ts +20 -0
- package/lib/services/validation-message.service.d.ts +14 -0
- package/lib/store/fast-query-store.service.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/utils.d.ts +3 -0
- package/package.json +5 -12
- package/public-api.d.ts +1 -0
- package/styles/common-param.less +15 -0
- package/styles/flex.less +5 -1
- package/styles/icons.less +8 -0
- package/styles/modals.less +54 -0
- package/styles/overrides/tui/tui-input.less +94 -121
- package/styles/styles.less +2 -0
- package/esm2022/lib/components/inputs/inputs.module.mjs +0 -166
- package/esm2022/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.mjs +0 -15
- package/esm2022/lib/components/reset-settings-form/reset-settings-form.component.mjs +0 -18
- package/esm2022/lib/components/sliding-panel/sliding-panel.module.mjs +0 -19
- package/esm2022/lib/utils/prizm.shared.module.mjs +0 -284
- package/icons/calendar-blank.svg +0 -10
- package/lib/components/inputs/inputs.module.d.ts +0 -31
- package/lib/components/inputs/sub-components/param-delete-content-icon/param-delete-content-btn.component.d.ts +0 -6
- package/lib/components/sliding-panel/sliding-panel.module.d.ts +0 -9
- package/lib/utils/prizm.shared.module.d.ts +0 -14
- /package/icons/{calendar-icon.svg → calendar-date-time.svg} +0 -0
- /package/icons/{calendar-custom.svg → calendar-date.svg} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.35355 2.64645C5.54882 2.84171 5.54882 3.15829 5.35355 3.35355L2.20711 6.5H14C14.8284 6.5 15.5 7.17157 15.5 8V13C15.5 13.2761 15.2761 13.5 15 13.5C14.7239 13.5 14.5 13.2761 14.5 13V8C14.5 7.72386 14.2761 7.5 14 7.5H2.20711L5.35355 10.6464C5.54882 10.8417 5.54882 11.1583 5.35355 11.3536C5.15829 11.5488 4.84171 11.5488 4.64645 11.3536L0.646447 7.35355C0.451184 7.15829 0.451184 6.84171 0.646447 6.64645L4.64645 2.64645C4.84171 2.45118 5.15829 2.45118 5.35355 2.64645Z" fill="#6E778C"/>
|
|
3
|
+
</svg>
|
package/icons/check.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.3536 2.64645C15.5488 2.84171 15.5488 3.15829 15.3536 3.35355L5.35355 13.3536C5.15829 13.5488 4.84171 13.5488 4.64645 13.3536L0.646447 9.35355C0.451184 9.15829 0.451184 8.84171 0.646447 8.64645C0.841709 8.45118 1.15829 8.45118 1.35355 8.64645L5 12.2929L14.6464 2.64645C14.8417 2.45118 15.1583 2.45118 15.3536 2.64645Z" fill="#6E778C"/>
|
|
3
|
+
</svg>
|
package/icons/floppy.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 2C0.5 1.17157 1.17157 0.5 2 0.5H5H9.58579C9.98361 0.5 10.3651 0.658035 10.6464 0.93934L15.0607 5.35355C15.342 5.63486 15.5 6.01639 15.5 6.41421V14C15.5 14.8284 14.8284 15.5 14 15.5H11H5H2C1.17157 15.5 0.5 14.8284 0.5 14V2ZM5.5 14.5H10.5V12C10.5 11.7239 10.2761 11.5 10 11.5H6C5.72386 11.5 5.5 11.7239 5.5 12V14.5ZM11.5 14.5V12C11.5 11.1716 10.8284 10.5 10 10.5H6C5.17157 10.5 4.5 11.1716 4.5 12V14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V2C1.5 1.72386 1.72386 1.5 2 1.5H4.5V5C4.5 5.82843 5.17157 6.5 6 6.5H9C9.27614 6.5 9.5 6.27614 9.5 6C9.5 5.72386 9.27614 5.5 9 5.5H6C5.72386 5.5 5.5 5.27614 5.5 5V1.5H9.58579C9.7184 1.5 9.84557 1.55268 9.93934 1.64645L14.3536 6.06066C14.4473 6.15443 14.5 6.28161 14.5 6.41421V14C14.5 14.2761 14.2761 14.5 14 14.5H11.5Z" fill="#6E778C"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1155_229286)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.03076 0.515396C8.21234 0.515396 8.37965 0.613842 8.46784 0.772575L10.8425 5.04696L15.086 5.51845C15.277 5.53968 15.439 5.66852 15.5026 5.84989C15.5662 6.03126 15.5202 6.23304 15.3843 6.36895L12.0735 9.67973L13.0211 14.4173C13.0593 14.6084 12.983 14.8043 12.8256 14.9192C12.6681 15.0342 12.4583 15.0471 12.2879 14.9525L8.03076 12.5874L3.77358 14.9525C3.60322 15.0471 3.39338 15.0342 3.23597 14.9192C3.07855 14.8043 3.00225 14.6084 3.04047 14.4173L3.98799 9.67973L0.677207 6.36895C0.541299 6.23304 0.495326 6.03126 0.558946 5.84989C0.622567 5.66852 0.784518 5.53968 0.975545 5.51845L5.21902 5.04696L7.59368 0.772575C7.68187 0.613842 7.84918 0.515396 8.03076 0.515396ZM8.03076 2.04496L5.96784 5.75822C5.88921 5.89976 5.7469 5.99446 5.58598 6.01234L2.11993 6.39745L4.88431 9.16184C5.00252 9.28005 5.05384 9.44952 5.02105 9.61345L4.2331 13.5532L7.78794 11.5783C7.93895 11.4944 8.12257 11.4944 8.27358 11.5783L11.8284 13.5532L11.0405 9.61345C11.0077 9.44952 11.059 9.28005 11.1772 9.16184L13.9416 6.39745L10.4755 6.01234C10.3146 5.99446 10.1723 5.89976 10.0937 5.75822L8.03076 2.04496Z" fill="#6E778C"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_1155_229286">
|
|
7
|
+
<rect width="16" height="16" fill="white" transform="translate(0.0307617 0.0153961)"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.43709 0.757179C8.34891 0.598446 8.1816 0.5 8.00001 0.5C7.81843 0.5 7.65112 0.598446 7.56293 0.757179L5.18828 5.03156L0.944798 5.50306C0.753771 5.52428 0.59182 5.65313 0.5282 5.8345C0.464579 6.01586 0.510553 6.21765 0.646461 6.35355L3.95724 9.66434L3.00972 14.4019C2.9715 14.593 3.04781 14.7889 3.20522 14.9039C3.36263 15.0188 3.57247 15.0317 3.74284 14.9371L8.00001 12.572L12.2572 14.9371C12.4276 15.0317 12.6374 15.0188 12.7948 14.9039C12.9522 14.7889 13.0285 14.593 12.9903 14.4019L12.0428 9.66434L15.3536 6.35355C15.4895 6.21765 15.5354 6.01586 15.4718 5.8345C15.4082 5.65313 15.2463 5.52428 15.0552 5.50306L10.8117 5.03156L8.43709 0.757179Z" fill="#0079C2"/>
|
|
3
|
+
</svg>
|
package/icons/trash.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.5C6.72386 1.5 6.5 1.72386 6.5 2V3.5H9.5V2C9.5 1.72386 9.27614 1.5 9 1.5H7ZM3 3.5H5.5V2C5.5 1.17157 6.17157 0.5 7 0.5H9C9.82843 0.5 10.5 1.17157 10.5 2V3.5H13H15C15.2761 3.5 15.5 3.72386 15.5 4C15.5 4.27614 15.2761 4.5 15 4.5H13.5V14C13.5 14.8284 12.8284 15.5 12 15.5H4C3.17157 15.5 2.5 14.8284 2.5 14V4.5H1C0.723858 4.5 0.5 4.27614 0.5 4C0.5 3.72386 0.723858 3.5 1 3.5H3ZM3.5 4.5V14C3.5 14.2761 3.72386 14.5 4 14.5H12C12.2761 14.5 12.5 14.2761 12.5 14V4.5H10H6H3.5ZM10 7.5C10.2761 7.5 10.5 7.72386 10.5 8V11C10.5 11.2761 10.2761 11.5 10 11.5C9.72386 11.5 9.5 11.2761 9.5 11V8C9.5 7.72386 9.72386 7.5 10 7.5ZM6.5 8C6.5 7.72386 6.27614 7.5 6 7.5C5.72386 7.5 5.5 7.72386 5.5 8V11C5.5 11.2761 5.72386 11.5 6 11.5C6.27614 11.5 6.5 11.2761 6.5 11V8Z" fill="#6E778C"/>
|
|
3
|
+
</svg>
|
package/icons/xmark.svg
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.3915 2.31565C14.5867 2.12039 14.5867 1.80381 14.3915 1.60854C14.1962 1.41328 13.8796 1.41328 13.6844 1.60854L8.00001 7.29291L2.31565 1.60854C2.12039 1.41328 1.80381 1.41328 1.60854 1.60854C1.41328 1.80381 1.41328 2.12039 1.60854 2.31565L7.29291 8.00001L1.60854 13.6844C1.41328 13.8796 1.41328 14.1962 1.60854 14.3915C1.80381 14.5867 2.12039 14.5867 2.31565 14.3915L8.00001 8.70712L13.6844 14.3915C13.8796 14.5867 14.1962 14.5867 14.3915 14.3915C14.5867 14.1962 14.5867 13.8796 14.3915 13.6844L8.70712 8.00001L14.3915 2.31565Z" fill="#6E778C"/>
|
|
3
|
+
</svg>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { OnInit
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
3
|
import { IColumnSettings, IColumnSettingsChanges, ITableColumnSettings } from './types/column-settings.types';
|
|
4
4
|
import { ITpUserSettings } from '../../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ColumnSettingsComponent implements OnInit {
|
|
7
|
-
resetColumnSettingsRef: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
8
|
-
resetColumnSettingsFooter: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
9
7
|
defaultSettings: import("@angular/core").InputSignal<ITableColumnSettings>;
|
|
10
8
|
/** Высота всего компонента настроек */
|
|
11
9
|
height: import("@angular/core").InputSignal<number | undefined>;
|
|
@@ -24,6 +22,8 @@ export declare class ColumnSettingsComponent implements OnInit {
|
|
|
24
22
|
columnsListEnterPredicate: import("@angular/core").InputSignal<() => boolean>;
|
|
25
23
|
/** функция предикат - возможность добавления элемента в лист фикс. справа колонок */
|
|
26
24
|
fixedRightListEnterPredicate: import("@angular/core").InputSignal<() => boolean>;
|
|
25
|
+
/** название модуля для сохранения настроек */
|
|
26
|
+
pathName: import("@angular/core").InputSignal<string | null>;
|
|
27
27
|
protected readonly openSettings: import("@angular/core").WritableSignal<boolean>;
|
|
28
28
|
protected readonly inputSettings: import("@angular/core").WritableSignal<ITableColumnSettings | null>;
|
|
29
29
|
protected readonly fixedLeftColumns: import("@angular/core").Signal<IColumnSettings[]>;
|
|
@@ -32,13 +32,14 @@ export declare class ColumnSettingsComponent implements OnInit {
|
|
|
32
32
|
columnsChanges: import("@angular/core").OutputRef<IColumnSettingsChanges>;
|
|
33
33
|
protected readonly settingsStore: import("../../types").IUserSettingsLoader<ITpUserSettings>;
|
|
34
34
|
private readonly _dr;
|
|
35
|
+
private readonly _injector;
|
|
35
36
|
private readonly _router;
|
|
36
37
|
private readonly _userProfileService;
|
|
37
38
|
private readonly _dialogService;
|
|
38
39
|
private readonly _resizeWindowObserver;
|
|
39
|
-
protected readonly iconSettings = "
|
|
40
|
-
protected readonly iconEraser = "
|
|
41
|
-
protected readonly iconCancelClose = "
|
|
40
|
+
protected readonly iconSettings = "@sproc.settings";
|
|
41
|
+
protected readonly iconEraser = "@sproc.eraser";
|
|
42
|
+
protected readonly iconCancelClose = "@sproc.cancel-close";
|
|
42
43
|
protected readonly columnSettingsHeaderHeightPx = 40;
|
|
43
44
|
protected readonly columnSettingsSubtitleHeightPx = 32;
|
|
44
45
|
protected readonly scrollBoxFixedColumnsHeightPx: import("@angular/core").WritableSignal<number>;
|
|
@@ -52,6 +53,7 @@ export declare class ColumnSettingsComponent implements OnInit {
|
|
|
52
53
|
private readonly _moduleName;
|
|
53
54
|
private _columnsSettings;
|
|
54
55
|
constructor();
|
|
56
|
+
fetchSettingsOnModuleNameChange(): void;
|
|
55
57
|
setDefaultSettings(): void;
|
|
56
58
|
private _effectOnSetScrollBoxColumnsMaxHeight;
|
|
57
59
|
ngOnInit(): void;
|
|
@@ -66,9 +68,7 @@ export declare class ColumnSettingsComponent implements OnInit {
|
|
|
66
68
|
protected dropIntoFixedLeft(event: CdkDragDrop<IColumnSettings[]>): void;
|
|
67
69
|
protected dropIntoColumns(event: CdkDragDrop<IColumnSettings[]>): void;
|
|
68
70
|
private _moveDroppedItem;
|
|
69
|
-
protected toggleVisibility(col: IColumnSettings): void;
|
|
70
71
|
protected showAllColumns(): void;
|
|
71
|
-
protected isHiddenColumn(column: IColumnSettings): boolean;
|
|
72
72
|
protected onFixedScrollbarResize([fixedScrollbar]: readonly ResizeObserverEntry[]): void;
|
|
73
73
|
protected onRightFixedScrollbarResize([fixedScrollbar]: readonly ResizeObserverEntry[]): void;
|
|
74
74
|
private _calcColumnListHeightPx;
|
|
@@ -76,5 +76,5 @@ export declare class ColumnSettingsComponent implements OnInit {
|
|
|
76
76
|
private _setStatusRecursive;
|
|
77
77
|
private _setColumnsStatusRecursive;
|
|
78
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnSettingsComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSettingsComponent, "sproc-column-settings", never, { "defaultSettings": { "alias": "defaultSettings"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showLeftListHeader": { "alias": "showLeftListHeader"; "required": false; "isSignal": true; }; "showRightListHeader": { "alias": "showRightListHeader"; "required": false; "isSignal": true; }; "columnsListHeader": { "alias": "columnsListHeader"; "required": false; "isSignal": true; }; "showFixedRightList": { "alias": "showFixedRightList"; "required": false; "isSignal": true; }; "fixedLeftListEnterPredicate": { "alias": "fixedLeftListEnterPredicate"; "required": false; "isSignal": true; }; "columnsListEnterPredicate": { "alias": "columnsListEnterPredicate"; "required": false; "isSignal": true; }; "fixedRightListEnterPredicate": { "alias": "fixedRightListEnterPredicate"; "required": false; "isSignal": true; }; }, { "columnsChanges": "columnsChanges"; }, never, never, true, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnSettingsComponent, "sproc-column-settings", never, { "defaultSettings": { "alias": "defaultSettings"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showLeftListHeader": { "alias": "showLeftListHeader"; "required": false; "isSignal": true; }; "showRightListHeader": { "alias": "showRightListHeader"; "required": false; "isSignal": true; }; "columnsListHeader": { "alias": "columnsListHeader"; "required": false; "isSignal": true; }; "showFixedRightList": { "alias": "showFixedRightList"; "required": false; "isSignal": true; }; "fixedLeftListEnterPredicate": { "alias": "fixedLeftListEnterPredicate"; "required": false; "isSignal": true; }; "columnsListEnterPredicate": { "alias": "columnsListEnterPredicate"; "required": false; "isSignal": true; }; "fixedRightListEnterPredicate": { "alias": "fixedRightListEnterPredicate"; "required": false; "isSignal": true; }; "pathName": { "alias": "pathName"; "required": false; "isSignal": true; }; }, { "columnsChanges": "columnsChanges"; }, never, never, true, never>;
|
|
80
80
|
}
|
|
@@ -5,11 +5,11 @@ export declare class ColumnSettingsTemplateComponent {
|
|
|
5
5
|
column: import("@angular/core").InputSignal<IColumnSettings>;
|
|
6
6
|
parent: import("@angular/core").InputSignal<IColumnSettings | undefined>;
|
|
7
7
|
expand: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
protected readonly iconEditorDots = "
|
|
9
|
-
protected readonly iconChevron = "
|
|
10
|
-
protected readonly iconEye = "
|
|
11
|
-
protected readonly iconEyeClosed = "
|
|
12
|
-
protected readonly iconLock = "
|
|
8
|
+
protected readonly iconEditorDots = "@sproc.16-editor-dots";
|
|
9
|
+
protected readonly iconChevron = "@sproc.chevrons/chevrons-right";
|
|
10
|
+
protected readonly iconEye = "@sproc.eye";
|
|
11
|
+
protected readonly iconEyeClosed = "@sproc.eye-closed";
|
|
12
|
+
protected readonly iconLock = "@sproc.lock";
|
|
13
13
|
protected readonly EColumnStatus: typeof EColumnStatus;
|
|
14
14
|
protected readonly status: import("@angular/core").Signal<EColumnStatus | import("../../types/column-settings.types").IColumnStatus>;
|
|
15
15
|
protected readonly canExpand: import("@angular/core").Signal<boolean>;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { TemplateBaseModal } from '../../../template-modal';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare
|
|
3
|
-
WARNING = "assets/ngx-register-base/icons/circle-exclamation-empty.svg"
|
|
4
|
-
}
|
|
5
|
-
export declare class ResetSettingsFormComponent {
|
|
6
|
-
protected readonly svgSrc: typeof SvgSrc;
|
|
3
|
+
export declare class ResetSettingsFormComponent extends TemplateBaseModal<void, boolean> {
|
|
7
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResetSettingsFormComponent, never>;
|
|
8
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<ResetSettingsFormComponent, "sproc-reset-settings-form", never, {}, {}, never, never, true, never>;
|
|
9
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const ICON_SETTINGS = "
|
|
2
|
-
export declare const ICON_ERASER = "
|
|
3
|
-
export declare const ICON_CANCEL_CLOSE = "
|
|
4
|
-
export declare const ICON_EDITOR_DOTS = "
|
|
5
|
-
export declare const ICON_CHEVRONS_RIGHT = "
|
|
6
|
-
export declare const ICON_EYE = "
|
|
7
|
-
export declare const ICON_EYE_CLOSED = "
|
|
8
|
-
export declare const ICON_LOCK = "
|
|
1
|
+
export declare const ICON_SETTINGS = "@sproc.settings";
|
|
2
|
+
export declare const ICON_ERASER = "@sproc.eraser";
|
|
3
|
+
export declare const ICON_CANCEL_CLOSE = "@sproc.cancel-close";
|
|
4
|
+
export declare const ICON_EDITOR_DOTS = "@sproc.16-editor-dots";
|
|
5
|
+
export declare const ICON_CHEVRONS_RIGHT = "@sproc.chevrons/chevrons-right";
|
|
6
|
+
export declare const ICON_EYE = "@sproc.eye";
|
|
7
|
+
export declare const ICON_EYE_CLOSED = "@sproc.eye-closed";
|
|
8
|
+
export declare const ICON_LOCK = "@sproc.lock";
|
package/lib/components/filters/components/filter-list/filter-edit/filter-edit.component.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FiltersStateService } from '../../../../../services';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FilterEditComponent implements OnInit
|
|
4
|
+
export declare class FilterEditComponent implements OnInit {
|
|
6
5
|
private readonly _filterStateService;
|
|
7
|
-
readonly
|
|
8
|
-
|
|
9
|
-
constructor(_filterStateService: FiltersStateService<any>);
|
|
6
|
+
private readonly _dr;
|
|
7
|
+
protected readonly filterNameControl: FormControl<string>;
|
|
10
8
|
ngOnInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterEditComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterEditComponent, "sproc-filter-edit", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterEditComponent, "sproc-filter-edit", never, {}, {}, never, never, true, never>;
|
|
14
11
|
}
|
|
@@ -8,6 +8,7 @@ export declare class FilterListFooterComponent implements OnInit {
|
|
|
8
8
|
private readonly _router;
|
|
9
9
|
private readonly _filterStateService;
|
|
10
10
|
private readonly _filterListService;
|
|
11
|
+
saveWhenPinned: import("@angular/core").InputSignal<boolean>;
|
|
11
12
|
acceptButtonDisabled: boolean;
|
|
12
13
|
applyButtonDisabled: boolean;
|
|
13
14
|
footerApplyButtonLabel: string;
|
|
@@ -21,5 +22,5 @@ export declare class FilterListFooterComponent implements OnInit {
|
|
|
21
22
|
onApplySavedFilter(): void;
|
|
22
23
|
onSaveFilter(): void;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterListFooterComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterListFooterComponent, "sproc-filter-list-footer", never, { "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "footerApplyButtonLabel": { "alias": "footerApplyButtonLabel"; "required": false; }; }, { "apply": "apply"; }, never, never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterListFooterComponent, "sproc-filter-list-footer", never, { "saveWhenPinned": { "alias": "saveWhenPinned"; "required": false; "isSignal": true; }; "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "footerApplyButtonLabel": { "alias": "footerApplyButtonLabel"; "required": false; }; }, { "apply": "apply"; }, never, never, false, never>;
|
|
25
26
|
}
|
|
@@ -8,6 +8,7 @@ export declare class FilterListHeaderComponent implements OnInit {
|
|
|
8
8
|
private readonly _router;
|
|
9
9
|
private readonly _filterStateService;
|
|
10
10
|
private readonly _filterListService;
|
|
11
|
+
saveWhenPinned: import("@angular/core").InputSignal<boolean>;
|
|
11
12
|
total: number | null;
|
|
12
13
|
showTotal: boolean;
|
|
13
14
|
showPin: boolean;
|
|
@@ -35,5 +36,5 @@ export declare class FilterListHeaderComponent implements OnInit {
|
|
|
35
36
|
onBack(): void;
|
|
36
37
|
protected get isPin(): boolean;
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterListHeaderComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterListHeaderComponent, "sproc-filter-list-header", never, { "total": { "alias": "total"; "required": false; }; "showTotal": { "alias": "showTotal"; "required": false; }; "showPin": { "alias": "showPin"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "filterListHeaderTitle": { "alias": "filterListHeaderTitle"; "required": false; }; }, { "pinnedChange": "pinnedChange"; "applyFilter": "applyFilter"; "resetFilter": "resetFilter"; }, never, never, false, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterListHeaderComponent, "sproc-filter-list-header", never, { "saveWhenPinned": { "alias": "saveWhenPinned"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; }; "showTotal": { "alias": "showTotal"; "required": false; }; "showPin": { "alias": "showPin"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "filterListHeaderTitle": { "alias": "filterListHeaderTitle"; "required": false; }; }, { "pinnedChange": "pinnedChange"; "applyFilter": "applyFilter"; "resetFilter": "resetFilter"; }, never, never, false, never>;
|
|
39
40
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ReplaySubject } from 'rxjs';
|
|
2
2
|
import { GqlFields } from '../../../../types';
|
|
3
|
-
import { FiltersService, FiltersStateService } from '../../../../services';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class FilterListService {
|
|
6
5
|
private readonly _filtersService;
|
|
7
6
|
private readonly _filterStateService;
|
|
7
|
+
private readonly _settingsStore;
|
|
8
|
+
private readonly _dr;
|
|
8
9
|
readonly apply$: ReplaySubject<GqlFields>;
|
|
9
10
|
modulePath: string;
|
|
10
11
|
private _pinnedFilterSetting;
|
|
11
|
-
private readonly settingsStore;
|
|
12
|
-
constructor(_filtersService: FiltersService<any>, _filterStateService: FiltersStateService<any>);
|
|
13
12
|
applyFilter(): void;
|
|
14
13
|
applySavedFilter(): void;
|
|
15
14
|
saveFilter(): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./filter-list/filter-list-header/filter-list-header.component";
|
|
3
|
-
import * as i2 from "./filter-list/filter-
|
|
4
|
-
import * as i3 from "./filter-list/
|
|
5
|
-
import * as i4 from "./filter-list/
|
|
6
|
-
import * as i5 from "./filter-list/filter-
|
|
3
|
+
import * as i2 from "./filter-list/filter-list-saved/filter-list-saved.component";
|
|
4
|
+
import * as i3 from "./filter-list/filters-section/filters-section.component";
|
|
5
|
+
import * as i4 from "./filter-list/filter-list-footer/filter-list-footer.component";
|
|
6
|
+
import * as i5 from "./filter-list/filter-edit/filter-edit.component";
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
8
8
|
import * as i7 from "@angular/forms";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
9
|
+
import * as i8 from "../../divider/divider.component";
|
|
10
|
+
import * as i9 from "@taiga-ui/core";
|
|
11
11
|
export declare class FilterListModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterListModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterListModule, [typeof i1.FilterListHeaderComponent, typeof i2.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FilterListModule, [typeof i1.FilterListHeaderComponent, typeof i2.FilterListSavedComponent, typeof i3.FiltersSectionComponent, typeof i4.FilterListFooterComponent], [typeof i5.FilterEditComponent, typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.DividerComponent, typeof i9.TuiHintDirective, typeof i9.TuiButton, typeof i9.TuiIcon, typeof i9.TuiLoader, typeof i9.TuiTextfieldComponent, typeof i9.TuiTextfieldOptionsDirective], [typeof i5.FilterEditComponent, typeof i2.FilterListSavedComponent, typeof i3.FiltersSectionComponent, typeof i1.FilterListHeaderComponent, typeof i4.FilterListFooterComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<FilterListModule>;
|
|
15
15
|
}
|
|
@@ -7,6 +7,7 @@ export declare class RegisterTableFilterComponent<Type extends Record<string, an
|
|
|
7
7
|
private readonly _store;
|
|
8
8
|
private readonly _filterStateService;
|
|
9
9
|
private readonly _filterListService;
|
|
10
|
+
saveWhenPinned: import("@angular/core").InputSignal<boolean>;
|
|
10
11
|
/** Высота всего компонента фильтров */
|
|
11
12
|
height: string | undefined;
|
|
12
13
|
showTotal: boolean;
|
|
@@ -36,5 +37,5 @@ export declare class RegisterTableFilterComponent<Type extends Record<string, an
|
|
|
36
37
|
private _setFilters;
|
|
37
38
|
ngOnDestroy(): void;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterTableFilterComponent<any>, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterTableFilterComponent<any>, "sproc-register-table-filter", never, { "height": { "alias": "height"; "required": false; }; "showTotal": { "alias": "showTotal"; "required": false; }; "showPin": { "alias": "showPin"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "subOffsetHeight": { "alias": "subOffsetHeight"; "required": false; }; "filterListHeaderTitle": { "alias": "filterListHeaderTitle"; "required": false; }; "footerApplyButtonLabel": { "alias": "footerApplyButtonLabel"; "required": false; }; }, { "clickApplyButton": "clickApplyButton"; }, never, ["*"], false, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterTableFilterComponent<any>, "sproc-register-table-filter", never, { "saveWhenPinned": { "alias": "saveWhenPinned"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; }; "showTotal": { "alias": "showTotal"; "required": false; }; "showPin": { "alias": "showPin"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "acceptButtonDisabled": { "alias": "acceptButtonDisabled"; "required": false; }; "applyButtonDisabled": { "alias": "applyButtonDisabled"; "required": false; }; "subOffsetHeight": { "alias": "subOffsetHeight"; "required": false; }; "filterListHeaderTitle": { "alias": "filterListHeaderTitle"; "required": false; }; "footerApplyButtonLabel": { "alias": "footerApplyButtonLabel"; "required": false; }; }, { "clickApplyButton": "clickApplyButton"; }, never, ["*"], false, never>;
|
|
40
41
|
}
|
|
@@ -4,10 +4,10 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "./components/filter-list.module";
|
|
6
6
|
import * as i5 from "../divider/divider.component";
|
|
7
|
-
import * as i6 from "../sliding-panel/sliding-panel.
|
|
7
|
+
import * as i6 from "../sliding-panel/sliding-panel.component";
|
|
8
8
|
import * as i7 from "@taiga-ui/core";
|
|
9
9
|
export declare class RegisterTableFilterModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterTableFilterModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RegisterTableFilterModule, [typeof i1.RegisterTableFilterComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FilterListModule, typeof i5.DividerComponent, typeof i6.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RegisterTableFilterModule, [typeof i1.RegisterTableFilterComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FilterListModule, typeof i5.DividerComponent, typeof i6.SlidingPanelComponent, typeof i7.TuiLoader], [typeof i1.RegisterTableFilterComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<RegisterTableFilterModule>;
|
|
13
13
|
}
|
|
@@ -5,6 +5,6 @@ export * from './inputs/index';
|
|
|
5
5
|
export * from './page-menu/index';
|
|
6
6
|
export * from './menu-constructor/index';
|
|
7
7
|
export * from './register-table/index';
|
|
8
|
-
export * from './sliding-panel/sliding-panel.module';
|
|
9
8
|
export { SearchInputComponent } from './search-input/search-input.component';
|
|
10
9
|
export { SlidingPanelComponent } from './sliding-panel/sliding-panel.component';
|
|
10
|
+
export * from './template-modal/index';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export { ParamCalendarYearComponent } from './param-calendar-year/param-calendar-year.component';
|
|
2
2
|
export { ParamCustomComponent } from './param-custom/param-custom.component';
|
|
3
3
|
export { ParamDateComponent } from './param-date/param-date.component';
|
|
4
|
-
export
|
|
4
|
+
export * from './param-date-range/index';
|
|
5
5
|
export { ParamDateTimeComponent } from './param-date-time/param-date-time.component';
|
|
6
6
|
export { ParamDateTimeRangeComponent } from './param-date-time-range/param-date-time-range.component';
|
|
7
|
+
export { ParamDropboxComponent } from './param-dropbox/param-dropbox.component';
|
|
7
8
|
export { ParamMonthComponent } from './param-month/param-month.component';
|
|
8
9
|
export { ParamMonthRangeComponent } from './param-month-range/param-month-range.component';
|
|
9
10
|
export { ParamMultiSelectComponent } from './param-multi-select/param-multi-select.component';
|
|
10
11
|
export { ParamSelectComponent } from './param-select/param-select.component';
|
|
11
|
-
export
|
|
12
|
+
export * from './param-switcher/index';
|
|
12
13
|
export * from './param-switcher-date-time-range/index';
|
|
13
14
|
export { ParamTextComponent } from './param-text/param-text.component';
|
|
14
15
|
export { ParamTextareaComponent } from './param-textarea/param-textarea.component';
|
|
@@ -16,5 +17,3 @@ export { ParamToggleComponent } from './param-toggle/param-toggle.component';
|
|
|
16
17
|
export * from './param-tree/index';
|
|
17
18
|
export { ParamTreeMultiSelectComponent } from './param-tree-multi-select/param-tree-multi-select.component';
|
|
18
19
|
export { ParamTreeSelectComponent } from './param-tree-select/param-tree-select.component';
|
|
19
|
-
export * from './inputs.module';
|
|
20
|
-
export type { SmaPrizmDateTime } from './param-date-time/param-date-time.component';
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { type TuiBooleanHandler } from '@taiga-ui/cdk';
|
|
2
|
-
import { TuiSizeL } from '@taiga-ui/core';
|
|
3
2
|
import { ParamBase } from '../../../core/param/param-base';
|
|
4
|
-
import { TuiInputYearComponent } from '@taiga-ui/legacy';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class ParamCalendarYearComponent extends ParamBase<number, string> {
|
|
7
|
-
private readonly _cdr;
|
|
8
|
-
yearInputComponent: import("@angular/core").Signal<TuiInputYearComponent | undefined>;
|
|
9
5
|
buildShowedValue: import("@angular/core").InputSignal<(value: number) => string>;
|
|
6
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
10
7
|
protected readonly disabledHandler: TuiBooleanHandler<number>;
|
|
11
8
|
disabledYears: import("@angular/core").InputSignal<number[]>;
|
|
12
9
|
min: import("@angular/core").InputSignal<number | null>;
|
|
13
10
|
max: import("@angular/core").InputSignal<number | null>;
|
|
14
|
-
size: import("@angular/core").InputSignal<TuiSizeL>;
|
|
15
|
-
protected isYearPickerOpen: boolean;
|
|
16
|
-
protected click(): void;
|
|
17
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParamCalendarYearComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParamCalendarYearComponent, "sproc-param-calendar-year", never, { "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamCalendarYearComponent, "sproc-param-calendar-year", never, { "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabledYears": { "alias": "disabledYears"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
13
|
}
|
|
@@ -2,5 +2,5 @@ import { ParamBase } from '../../../core/param/param-base';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ParamCustomComponent extends ParamBase<any, any> {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParamCustomComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParamCustomComponent, "sproc-param-custom", never, {}, {}, never, ["*"],
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamCustomComponent, "sproc-param-custom", never, {}, {}, never, ["*"], true, never>;
|
|
6
6
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { TuiDay } from '@taiga-ui/cdk';
|
|
2
1
|
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
3
2
|
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export type InputDateSaveValue = string | null;
|
|
6
|
-
export declare class ParamDateComponent extends ParamDateBase<
|
|
5
|
+
export declare class ParamDateComponent extends ParamDateBase<Date | null, InputDateSaveValue> {
|
|
7
6
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected formatterSavedValue: (value: TuiDay | null) => InputDateSaveValue;
|
|
14
|
-
protected parserSavedValue: (value: InputDateSaveValue) => TuiDay | null;
|
|
7
|
+
set formatSavedValue(formatter: FormatterSavedValueType<Date | null, InputDateSaveValue> | undefined);
|
|
8
|
+
set parseSavedValue(parser: ParserSavedValueType<InputDateSaveValue, Date | null> | undefined);
|
|
9
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: Date | null) => string>;
|
|
10
|
+
protected formatterSavedValue: (value: Date | null) => InputDateSaveValue;
|
|
11
|
+
protected parserSavedValue: (value: InputDateSaveValue) => Date | null;
|
|
15
12
|
private _defaultDateConvert;
|
|
16
13
|
private _defaultFormatterSaveValue;
|
|
17
14
|
private _defaultParserSaveValue;
|
|
18
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParamDateComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateComponent, "sproc-param-date", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateComponent, "sproc-param-date", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ParamDateRangeComponent } from './param-date-range.component';
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
1
|
+
import { DateRangeType, ParamDateBase } from '../../../core/param/param-date-base';
|
|
3
2
|
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
4
|
-
import {
|
|
3
|
+
import { TuiDayLike } from '@taiga-ui/cdk';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
5
|
+
type InputDateRangeSavedValue = {
|
|
7
6
|
from: string;
|
|
8
7
|
to: string;
|
|
9
8
|
} | null;
|
|
10
|
-
export declare class ParamDateRangeComponent extends ParamDateBase<
|
|
11
|
-
maxLength: import("@angular/core").InputSignal<
|
|
12
|
-
|
|
13
|
-
errorMessage: import("@angular/core").InputSignal<string>;
|
|
9
|
+
export declare class ParamDateRangeComponent extends ParamDateBase<DateRangeType | null, InputDateRangeSavedValue> {
|
|
10
|
+
maxLength: import("@angular/core").InputSignal<TuiDayLike | null>;
|
|
11
|
+
minLength: import("@angular/core").InputSignal<TuiDayLike | null>;
|
|
14
12
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
protected formatterSavedValue: (range: PrizmDayRange | null) => InputDateRangeSavedValue;
|
|
21
|
-
protected parserSavedValue: (value: InputDateRangeSavedValue) => PrizmDayRange | null;
|
|
13
|
+
set formatSavedValue(formatter: FormatterSavedValueType<DateRangeType | null, InputDateRangeSavedValue> | undefined);
|
|
14
|
+
set parseSavedValue(parser: ParserSavedValueType<InputDateRangeSavedValue, DateRangeType | null> | undefined);
|
|
15
|
+
buildShowedValue: import("@angular/core").InputSignal<(value: DateRangeType | null) => string>;
|
|
16
|
+
protected formatterSavedValue: (range: DateRangeType | null) => InputDateRangeSavedValue;
|
|
17
|
+
protected parserSavedValue: (value: InputDateRangeSavedValue) => DateRangeType | null;
|
|
22
18
|
private _defaultFormatterSaveValue;
|
|
23
19
|
private _defaultParserSaveValue;
|
|
24
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParamDateRangeComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateRangeComponent, "sproc-param-date-range", never, { "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateRangeComponent, "sproc-param-date-range", never, { "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; "buildShowedValue": { "alias": "buildShowedValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import { PrizmDay, PrizmTime, PrizmTimeMode } from '@prizm-ui/components';
|
|
2
1
|
import { ParamDateBase } from '../../../core/param/param-date-base';
|
|
3
2
|
import { FormatterSavedValueType, ParserSavedValueType } from '../../../types/params.types';
|
|
3
|
+
import { MaskitoTimeMode } from '@maskito/kit';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export type SmaPrizmDateTime = [PrizmDay, PrizmTime | undefined];
|
|
6
5
|
export type InputDateTimeSaveValue = string | null;
|
|
7
|
-
export declare class ParamDateTimeComponent extends ParamDateBase<
|
|
6
|
+
export declare class ParamDateTimeComponent extends ParamDateBase<Date | null, InputDateTimeSaveValue> {
|
|
8
7
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
protected formatterSavedValue: (value: SmaPrizmDateTime | null) => InputDateTimeSaveValue;
|
|
15
|
-
protected parserSavedValue: (value: InputDateTimeSaveValue) => SmaPrizmDateTime | null;
|
|
8
|
+
timeMode: import("@angular/core").InputSignal<MaskitoTimeMode>;
|
|
9
|
+
set formatSavedValue(formatter: FormatterSavedValueType<Date | null, InputDateTimeSaveValue> | undefined);
|
|
10
|
+
set parseSavedValue(parser: ParserSavedValueType<InputDateTimeSaveValue, Date | null> | undefined);
|
|
11
|
+
protected formatterSavedValue: (value: Date | null) => InputDateTimeSaveValue;
|
|
12
|
+
protected parserSavedValue: (value: InputDateTimeSaveValue) => Date | null;
|
|
16
13
|
private _defaultFormatterSaveValue;
|
|
17
14
|
private _defaultParserSaveValue;
|
|
18
15
|
protected onInit(): void;
|
|
19
|
-
protected clearValue(): void;
|
|
20
16
|
protected get nativeDate(): Date | null;
|
|
21
17
|
private _subscribeOnTimeZoneChanges;
|
|
22
|
-
private _valueFromLocalNativeDate;
|
|
23
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ParamDateTimeComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateTimeComponent, "sproc-param-date-time", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ParamDateTimeComponent, "sproc-param-date-time", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "timeMode": { "alias": "timeMode"; "required": false; "isSignal": true; }; "formatSavedValue": { "alias": "formatSavedValue"; "required": false; }; "parseSavedValue": { "alias": "parseSavedValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
20
|
}
|
package/lib/components/inputs/param-date-time-range/date-time-range/date-time-range.component.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { TuiDay, TuiDayLike, TuiDayRange, TuiTime } from '@taiga-ui/cdk';
|
|
4
|
+
import { MaskitoOptions } from '@maskito/core';
|
|
5
|
+
import { MaskitoTimeMode } from '@maskito/kit';
|
|
6
|
+
import { EInputType } from './date-time-range.consts';
|
|
7
|
+
import { DateRangeType } from '../../../../core/param/param-date-base';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CustomDateTimeRangeComponent implements ControlValueAccessor {
|
|
10
|
+
protected inputItems: import("@angular/core").Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
11
|
+
min: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
12
|
+
max: import("@angular/core").InputSignal<Date | null | undefined>;
|
|
13
|
+
minLength: import("@angular/core").InputSignal<TuiDayLike | null>;
|
|
14
|
+
maxLength: import("@angular/core").InputSignal<TuiDayLike | null>;
|
|
15
|
+
timeMode: import("@angular/core").InputSignal<MaskitoTimeMode>;
|
|
16
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
17
|
+
forceClear: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
protected value: import("@angular/core").WritableSignal<DateRangeType | null>;
|
|
19
|
+
/** ControlValueAccessor properties and methods */
|
|
20
|
+
onChange: (val: any) => void;
|
|
21
|
+
onTouched: () => void;
|
|
22
|
+
touched: boolean;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
/** Method 1: Framework writes value to your component */
|
|
25
|
+
writeValue(date: DateRangeType | null): void;
|
|
26
|
+
/** Method 2: Register callback for when value changes */
|
|
27
|
+
registerOnChange(onChange: any): void;
|
|
28
|
+
/** Method 3: Register callback for when user touches control */
|
|
29
|
+
registerOnTouched(onTouched: any): void;
|
|
30
|
+
/** Method 4: Handle disabled state */
|
|
31
|
+
setDisabledState(disabled: boolean): void;
|
|
32
|
+
markAsTouched(): void;
|
|
33
|
+
/** method to notify parent form on control value changes by user interaction */
|
|
34
|
+
protected onValueChange(val: DateRangeType | null): void;
|
|
35
|
+
/** custom date-time-range component props and methods */
|
|
36
|
+
protected open: boolean;
|
|
37
|
+
protected EInputType: typeof EInputType;
|
|
38
|
+
protected DATE_PLACEHOLDER: string;
|
|
39
|
+
protected TIME_PLACEHOLDER: string;
|
|
40
|
+
protected isFocused: import("@angular/core").WritableSignal<boolean>;
|
|
41
|
+
protected calendarMinDay: import("@angular/core").Signal<TuiDay>;
|
|
42
|
+
protected calendarMaxDay: import("@angular/core").Signal<TuiDay>;
|
|
43
|
+
protected timeLength: import("@angular/core").Signal<number>;
|
|
44
|
+
private _dateFrom;
|
|
45
|
+
private _dateTo;
|
|
46
|
+
private _timeFrom;
|
|
47
|
+
private _timeTo;
|
|
48
|
+
private _currentDayRange;
|
|
49
|
+
private _currentTimeFrom;
|
|
50
|
+
private _currentTimeTo;
|
|
51
|
+
/** range computed from value */
|
|
52
|
+
protected computedTuiDayRange: import("@angular/core").Signal<TuiDayRange | null>;
|
|
53
|
+
/** computed timeFrom from value */
|
|
54
|
+
protected tuiTimeFrom: import("@angular/core").Signal<TuiTime | null>;
|
|
55
|
+
/** computed timeTo from value */
|
|
56
|
+
protected tuiTimeTo: import("@angular/core").Signal<TuiTime | null>;
|
|
57
|
+
protected fromValue: import("@angular/core").Signal<string | null>;
|
|
58
|
+
protected toValue: import("@angular/core").Signal<string | null>;
|
|
59
|
+
protected fromTimeValue: import("@angular/core").Signal<string | null>;
|
|
60
|
+
protected toTimeValue: import("@angular/core").Signal<string | null>;
|
|
61
|
+
protected empty: import("@angular/core").Signal<boolean>;
|
|
62
|
+
protected datePlaceholder: import("@angular/core").Signal<string>;
|
|
63
|
+
protected timeMaxLength: import("@angular/core").Signal<number>;
|
|
64
|
+
protected onClick(): void;
|
|
65
|
+
protected onFocus(): void;
|
|
66
|
+
protected onBlur(): void;
|
|
67
|
+
protected onActiveZone(active: boolean): void;
|
|
68
|
+
protected computedDateMask: import("@angular/core").Signal<MaskitoOptions>;
|
|
69
|
+
protected computedTimeMask: import("@angular/core").Signal<Required<MaskitoOptions>>;
|
|
70
|
+
protected onCalendarChange(range: TuiDayRange | null): void;
|
|
71
|
+
protected updateTimeFrom(timeFrom: TuiTime | null): void;
|
|
72
|
+
protected updateTimeTo(timeTo: TuiTime | null): void;
|
|
73
|
+
private getUpdatedDateTime;
|
|
74
|
+
/** method to focus on next input when prev is filled */
|
|
75
|
+
protected onKeyup(e: KeyboardEvent, type: EInputType): void;
|
|
76
|
+
protected clear(): void;
|
|
77
|
+
/** update value method for date inputItems */
|
|
78
|
+
protected onDateValueChange(value: string | null, type: EInputType): void;
|
|
79
|
+
/** update value method for time inputItems */
|
|
80
|
+
protected onTimeValueChange(value: string | null, type: EInputType): void;
|
|
81
|
+
private getTuiTimeFromString;
|
|
82
|
+
private timeToString;
|
|
83
|
+
private getInputMaxLength;
|
|
84
|
+
private get inputItemsAreFilled();
|
|
85
|
+
private setDateFrom;
|
|
86
|
+
private setDateTo;
|
|
87
|
+
private get maxDateBasedOnMaxLength();
|
|
88
|
+
private getNativeFromString;
|
|
89
|
+
private resetSignals;
|
|
90
|
+
private clearInputItems;
|
|
91
|
+
private transformRange;
|
|
92
|
+
private fromTuiToNative;
|
|
93
|
+
private fromNativeToTui;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateTimeRangeComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomDateTimeRangeComponent, "sproc-custom-date-time-range", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "timeMode": { "alias": "timeMode"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "forceClear": { "alias": "forceClear"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
96
|
+
}
|