aril 0.0.7 → 0.0.9
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 +48 -48
- package/aril-0.0.9.tgz +0 -0
- package/esm2022/http/index.mjs +1 -1
- package/esm2022/http/lib/enums.mjs +6 -6
- package/esm2022/http/lib/interfaces.mjs +10 -31
- package/esm2022/http/src/httpClient.mjs +3 -3
- package/esm2022/http/src/serviceBase.mjs +25 -27
- package/esm2022/http/src/serviceStateMethods.mjs +4 -7
- package/esm2022/i18n/aril-i18n.mjs +5 -0
- package/esm2022/i18n/index.mjs +6 -0
- package/esm2022/i18n/src/file-url-token.mjs +3 -0
- package/esm2022/i18n/src/i18n.module.mjs +17 -0
- package/esm2022/i18n/src/loader.mjs +20 -0
- package/esm2022/i18n/src/provideI18n.mjs +16 -0
- package/esm2022/i18n/src/provideScope.mjs +18 -0
- package/esm2022/public-api.mjs +2 -2
- package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +3 -3
- package/esm2022/theme/layout/app/config/app.config.component.mjs +12 -14
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +15 -9
- package/esm2022/theme/layout/app/menu/app.menu.component.mjs +148 -166
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +3 -3
- package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +4 -4
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +4 -4
- package/esm2022/theme/layout/index.mjs +1 -1
- package/esm2022/theme/layout/service/app.layout.service.mjs +10 -15
- package/esm2022/theme/layout/service/app.menu.service.mjs +1 -1
- package/esm2022/theme/layout/service/menuchangeevent.mjs +1 -1
- package/esm2022/ui/badge/index.mjs +1 -1
- package/esm2022/ui/badge/src/badge.component.mjs +3 -3
- package/esm2022/ui/button/index.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +4 -4
- package/esm2022/ui/button/src/split-button.component.mjs +3 -3
- package/esm2022/ui/calendar/index.mjs +1 -1
- package/esm2022/ui/calendar/src/calendar.component.mjs +27 -14
- package/esm2022/ui/checkbox/index.mjs +1 -1
- package/esm2022/ui/checkbox/src/check-box.component.mjs +4 -4
- package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +4 -4
- package/esm2022/ui/dxField/index.mjs +1 -1
- package/esm2022/ui/dxField/src/dx-field.component.mjs +5 -5
- package/esm2022/ui/field/index.mjs +1 -1
- package/esm2022/ui/field/src/field.component.mjs +11 -9
- package/esm2022/ui/fileUpload/index.mjs +1 -1
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +12 -12
- package/esm2022/ui/form/index.mjs +7 -7
- package/esm2022/ui/form/src/form-submit-button.component.mjs +22 -27
- package/esm2022/ui/form/src/form.component.mjs +2 -2
- package/esm2022/ui/index.mjs +2 -2
- package/esm2022/ui/lib/index.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.component.mjs +9 -9
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +4 -4
- package/esm2022/ui/lib/src/form/form-validation.mjs +3 -3
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +2 -2
- package/esm2022/ui/lib/src/input/baseInput.mjs +4 -4
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +6 -6
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +3 -3
- package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +3 -2
- package/esm2022/ui/lib/src/input/input-transforms.mjs +1 -1
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +12 -6
- package/esm2022/ui/mask/index.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +8 -8
- package/esm2022/ui/number/index.mjs +1 -1
- package/esm2022/ui/number/src/number.component.mjs +10 -10
- package/esm2022/ui/overlayPanel/index.mjs +1 -1
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +4 -7
- package/esm2022/ui/panel/index.mjs +1 -1
- package/esm2022/ui/panel/src/panel.component.mjs +3 -3
- package/esm2022/ui/password/index.mjs +1 -1
- package/esm2022/ui/password/src/password.component.mjs +7 -7
- package/esm2022/ui/radioButton/index.mjs +1 -1
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +8 -8
- package/esm2022/ui/selectBox/index.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +8 -8
- package/esm2022/ui/switch/index.mjs +1 -1
- package/esm2022/ui/switch/src/switch.component.mjs +7 -7
- package/esm2022/ui/table/index.mjs +3 -5
- package/esm2022/ui/table/src/i18n.mjs +53 -90
- package/esm2022/ui/table/src/table-column.component.mjs +4 -8
- package/esm2022/ui/table/src/table.component.mjs +13 -10
- package/esm2022/ui/tagBox/index.mjs +1 -1
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +13 -13
- package/esm2022/ui/text/index.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +5 -5
- package/esm2022/ui/textArea/index.mjs +1 -1
- package/esm2022/ui/textArea/src/text-area.component.mjs +4 -4
- package/esm2022/ui/tree/index.mjs +1 -1
- package/esm2022/ui/tree/src/tree.component.mjs +5 -5
- package/esm2022/ui/treeTable/index.mjs +1 -1
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +3 -3
- package/esm2022/ui/value/index.mjs +1 -1
- package/esm2022/ui/value/src/value.component.mjs +13 -13
- package/esm2022/util/index.mjs +2 -2
- package/esm2022/util/init-event/index.mjs +1 -1
- package/esm2022/util/init-event/src/init-event.directive.mjs +1 -1
- package/esm2022/util/lib/index.mjs +2 -1
- package/esm2022/util/lib/src/interfaces.mjs +1 -1
- package/esm2022/util/lib/src/module-router.mjs +16 -0
- package/esm2022/util/lib/src/types.mjs +1 -1
- package/esm2022/util/primitive-extensions/index.mjs +5 -5
- package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +68 -47
- package/esm2022/util/primitive-extensions/src/number.extensions.mjs +13 -7
- package/esm2022/util/primitive-extensions/src/string.extensions.mjs +4 -4
- package/esm2022/util/pub-sub/index.mjs +1 -1
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +7 -5
- package/fesm2022/aril-http.mjs +39 -63
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +72 -0
- package/fesm2022/aril-i18n.mjs.map +1 -0
- package/fesm2022/aril-theme-layout.mjs +190 -209
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-ui-badge.mjs +2 -2
- package/fesm2022/aril-ui-badge.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs +5 -5
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +25 -12
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-checkbox.mjs +5 -5
- package/fesm2022/aril-ui-checkbox.mjs.map +1 -1
- package/fesm2022/aril-ui-dxField.mjs +4 -4
- package/fesm2022/aril-ui-dxField.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +9 -7
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +11 -11
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +28 -34
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs +30 -23
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +8 -8
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +10 -10
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs +2 -5
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-panel.mjs +2 -2
- package/fesm2022/aril-ui-panel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +7 -7
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs +7 -7
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +5 -5
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +7 -7
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +66 -105
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs +11 -11
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +4 -4
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +3 -3
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +3 -3
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +2 -2
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui-value.mjs +11 -11
- package/fesm2022/aril-ui-value.mjs.map +1 -1
- package/fesm2022/aril-ui.mjs +1 -1
- package/fesm2022/aril-ui.mjs.map +1 -1
- package/fesm2022/aril-util-init-event.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs +19 -0
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs +82 -55
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs +6 -4
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril-util.mjs +1 -1
- package/fesm2022/aril-util.mjs.map +1 -1
- package/fesm2022/aril.mjs +1 -1
- package/fesm2022/aril.mjs.map +1 -1
- package/http/lib/enums.d.ts +5 -5
- package/http/lib/interfaces.d.ts +9 -31
- package/http/src/httpClient.d.ts +3 -3
- package/http/src/serviceBase.d.ts +2 -1
- package/http/src/serviceStateMethods.d.ts +2 -3
- package/i18n/index.d.ts +5 -0
- package/i18n/src/file-url-token.d.ts +2 -0
- package/i18n/src/i18n.module.d.ts +7 -0
- package/i18n/src/loader.d.ts +9 -0
- package/i18n/src/provideI18n.d.ts +2 -0
- package/i18n/src/provideScope.d.ts +9 -0
- package/package.json +13 -7
- package/styles/ui/ui.common.scss +8 -8
- package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +2 -4
- package/theme/layout/app/config/app.config.component.html +13 -62
- package/theme/layout/app/config/app.config.component.ts +12 -21
- package/theme/layout/app/layout/app.layout.component.ts +39 -52
- package/theme/layout/app/menu/app.menu.component.ts +147 -121
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +5 -18
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +2 -3
- package/theme/layout/app/sidebar/app.sidebar.component.html +9 -31
- package/theme/layout/app/sidebar/app.sidebar.component.ts +6 -3
- package/theme/layout/app/topbar/app.topbar.component.html +1 -5
- package/theme/layout/app/topbar/app.topbar.component.ts +4 -5
- package/theme/layout/index.ts +1 -1
- package/theme/layout/ng-package.json +6 -6
- package/theme/layout/service/app.layout.service.ts +12 -31
- package/theme/layout/service/app.menu.service.ts +0 -1
- package/theme/layout/service/menuchangeevent.ts +1 -1
- package/theme/styles/layout/_animation.scss +53 -53
- package/theme/styles/layout/_breadcrumb.scss +21 -21
- package/theme/styles/layout/_config.scss +42 -42
- package/theme/styles/layout/_content.scss +3 -3
- package/theme/styles/layout/_fonts.scss +40 -36
- package/theme/styles/layout/_layout_dark.scss +5 -5
- package/theme/styles/layout/_layout_dim.scss +5 -5
- package/theme/styles/layout/_layout_light.scss +5 -5
- package/theme/styles/layout/_main.scss +28 -28
- package/theme/styles/layout/_profile.scss +10 -10
- package/theme/styles/layout/_responsive.scss +111 -113
- package/theme/styles/layout/_sidebar_drawer.scss +234 -236
- package/theme/styles/layout/_sidebar_horizontal.scss +163 -163
- package/theme/styles/layout/_sidebar_reveal.scss +201 -203
- package/theme/styles/layout/_sidebar_slim.scss +144 -145
- package/theme/styles/layout/_sidebar_slim_plus.scss +162 -163
- package/theme/styles/layout/_sidebar_vertical.scss +153 -153
- package/theme/styles/layout/_topbar.scss +78 -78
- package/theme/styles/layout/_typography.scss +68 -63
- package/theme/styles/layout/_utils.scss +24 -24
- package/theme/styles/layout/layout.scss +24 -24
- package/theme/styles/layout/menutheme/_colorscheme.scss +11 -11
- package/theme/styles/layout/menutheme/_menutheme.scss +3 -3
- package/theme/styles/layout/menutheme/_primarycolor.scss +16 -16
- package/theme/styles/layout/menutheme/_transparent.scss +26 -26
- package/theme/styles/layout/preloading.scss +84 -84
- package/theme/styles/theme/base/_colors.scss +14 -15
- package/theme/styles/theme/base/_common.scss +39 -38
- package/theme/styles/theme/base/_components.scss +97 -97
- package/theme/styles/theme/base/_mixins.scss +281 -281
- package/theme/styles/theme/base/components/button/_button.scss +535 -535
- package/theme/styles/theme/base/components/button/_speeddial.scss +60 -60
- package/theme/styles/theme/base/components/button/_splitbutton.scss +328 -334
- package/theme/styles/theme/base/components/data/_carousel.scss +31 -31
- package/theme/styles/theme/base/components/data/_datatable.scss +336 -336
- package/theme/styles/theme/base/components/data/_dataview.scss +38 -38
- package/theme/styles/theme/base/components/data/_filter.scss +124 -125
- package/theme/styles/theme/base/components/data/_organizationchart.scss +48 -48
- package/theme/styles/theme/base/components/data/_paginator.scss +78 -78
- package/theme/styles/theme/base/components/data/_timeline.scss +33 -36
- package/theme/styles/theme/base/components/data/_treetable.scss +253 -254
- package/theme/styles/theme/base/components/data/_virtualscroller.scss +24 -24
- package/theme/styles/theme/base/components/file/_fileupload.scss +51 -51
- package/theme/styles/theme/base/components/input/_autocomplete.scss +120 -120
- package/theme/styles/theme/base/components/input/_calendar.scss +250 -250
- package/theme/styles/theme/base/components/input/_cascadeselect.scss +117 -118
- package/theme/styles/theme/base/components/input/_checkbox.scss +71 -71
- package/theme/styles/theme/base/components/input/_chips.scss +49 -49
- package/theme/styles/theme/base/components/input/_colorpicker.scss +11 -11
- package/theme/styles/theme/base/components/input/_dropdown.scss +141 -141
- package/theme/styles/theme/base/components/input/_editor.scss +120 -120
- package/theme/styles/theme/base/components/input/_inputgroup.scss +42 -42
- package/theme/styles/theme/base/components/input/_inputmask.scss +10 -10
- package/theme/styles/theme/base/components/input/_inputnumber.scss +21 -21
- package/theme/styles/theme/base/components/input/_inputswitch.scss +54 -54
- package/theme/styles/theme/base/components/input/_inputtext.scss +62 -62
- package/theme/styles/theme/base/components/input/_listbox.scss +80 -80
- package/theme/styles/theme/base/components/input/_multiselect.scss +158 -160
- package/theme/styles/theme/base/components/input/_password.scss +42 -42
- package/theme/styles/theme/base/components/input/_radiobutton.scss +57 -57
- package/theme/styles/theme/base/components/input/_rating.scss +53 -53
- package/theme/styles/theme/base/components/input/_selectbutton.scss +46 -46
- package/theme/styles/theme/base/components/input/_slider.scss +59 -55
- package/theme/styles/theme/base/components/input/_togglebutton.scss +44 -44
- package/theme/styles/theme/base/components/input/_treeselect.scss +119 -119
- package/theme/styles/theme/base/components/menu/_breadcrumb.scss +33 -33
- package/theme/styles/theme/base/components/menu/_contextmenu.scss +31 -31
- package/theme/styles/theme/base/components/menu/_dock.scss +80 -80
- package/theme/styles/theme/base/components/menu/_megamenu.scss +54 -54
- package/theme/styles/theme/base/components/menu/_menu.scss +30 -30
- package/theme/styles/theme/base/components/menu/_menubar.scss +136 -137
- package/theme/styles/theme/base/components/menu/_panelmenu.scss +151 -151
- package/theme/styles/theme/base/components/menu/_slidemenu.scss +57 -57
- package/theme/styles/theme/base/components/menu/_steps.scss +46 -46
- package/theme/styles/theme/base/components/menu/_tabmenu.scss +60 -61
- package/theme/styles/theme/base/components/menu/_tieredmenu.scss +34 -34
- package/theme/styles/theme/base/components/messages/_inlinemessage.scss +55 -55
- package/theme/styles/theme/base/components/messages/_message.scss +105 -105
- package/theme/styles/theme/base/components/messages/_toast.scss +97 -98
- package/theme/styles/theme/base/components/misc/_avatar.scss +22 -22
- package/theme/styles/theme/base/components/misc/_badge.scss +40 -40
- package/theme/styles/theme/base/components/misc/_chip.scss +39 -39
- package/theme/styles/theme/base/components/misc/_inplace.scss +12 -13
- package/theme/styles/theme/base/components/misc/_progressbar.scss +13 -13
- package/theme/styles/theme/base/components/misc/_scrolltop.scss +20 -20
- package/theme/styles/theme/base/components/misc/_skeleton.scss +6 -6
- package/theme/styles/theme/base/components/misc/_tag.scss +31 -31
- package/theme/styles/theme/base/components/misc/_terminal.scss +1 -1
- package/theme/styles/theme/base/components/multimedia/_galleria.scss +150 -150
- package/theme/styles/theme/base/components/multimedia/_image.scss +35 -35
- package/theme/styles/theme/base/components/overlay/_confirmpopup.scss +57 -59
- package/theme/styles/theme/base/components/overlay/_dialog.scss +56 -56
- package/theme/styles/theme/base/components/overlay/_overlaypanel.scss +58 -60
- package/theme/styles/theme/base/components/overlay/_sidebar.scss +20 -20
- package/theme/styles/theme/base/components/overlay/_tooltip.scss +27 -27
- package/theme/styles/theme/base/components/panel/_accordion.scss +104 -104
- package/theme/styles/theme/base/components/panel/_card.scss +23 -23
- package/theme/styles/theme/base/components/panel/_divider.scss +24 -24
- package/theme/styles/theme/base/components/panel/_fieldset.scss +38 -38
- package/theme/styles/theme/base/components/panel/_panel.scss +61 -61
- package/theme/styles/theme/base/components/panel/_scrollpanel.scss +5 -5
- package/theme/styles/theme/base/components/panel/_splitter.scss +15 -15
- package/theme/styles/theme/base/components/panel/_tabview.scss +68 -68
- package/theme/styles/theme/base/components/panel/_toolbar.scss +8 -8
- package/theme/styles/theme/dark/_extensions.scss +134 -120
- package/theme/styles/theme/dark/_variables.scss +918 -896
- package/theme/styles/theme/dark/blue/theme.scss +14 -14
- package/theme/styles/theme/dark/indigo/theme.scss +14 -14
- package/theme/styles/theme/light/_extensions.scss +116 -102
- package/theme/styles/theme/light/_variables.scss +911 -898
- package/theme/styles/theme/light/blue/theme.scss +14 -14
- package/theme/styles/theme/light/indigo/theme.scss +14 -14
- package/ui/button/src/button.component.d.ts +1 -1
- package/ui/calendar/src/calendar.component.d.ts +1 -1
- package/ui/form/index.d.ts +4 -4
- package/ui/form/src/form-submit-button.component.d.ts +5 -5
- package/ui/lib/src/form/form-validation.d.ts +1 -1
- package/ui/lib/src/input/baseInput.d.ts +2 -2
- package/ui/lib/src/input/common-input-validators.service.d.ts +3 -3
- package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +2 -2
- package/ui/lib/src/input/input-transforms.d.ts +1 -1
- package/ui/mask/src/mask.component.d.ts +3 -3
- package/ui/number/src/number.component.d.ts +4 -4
- package/ui/overlayPanel/src/overlay-panel.component.d.ts +1 -1
- package/ui/password/src/password.component.d.ts +3 -3
- package/ui/selectBox/src/select-box.component.d.ts +2 -2
- package/ui/switch/src/switch.component.d.ts +3 -3
- package/ui/table/index.d.ts +0 -1
- package/ui/table/src/table-column.component.d.ts +1 -1
- package/ui/table/src/table.component.d.ts +4 -3
- package/ui/tree/src/tree.component.d.ts +1 -1
- package/ui/value/src/value.component.d.ts +2 -2
- package/util/lib/index.d.ts +1 -0
- package/util/lib/src/module-router.d.ts +5 -0
- package/util/lib/src/types.d.ts +2 -2
- package/util/primitive-extensions/index.d.ts +4 -4
- package/aril-0.0.7.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Input } from '@angular/core';
|
|
3
3
|
import * as i3 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i4 from 'primeng/calendar';
|
|
@@ -23,7 +23,7 @@ class CalendarComponent extends BaseInputComponent {
|
|
|
23
23
|
this.disabledDates = [];
|
|
24
24
|
this.view = 'date';
|
|
25
25
|
this.selectionMode = 'single';
|
|
26
|
-
this.dateFormat =
|
|
26
|
+
this.dateFormat = 'dd/MM/yy';
|
|
27
27
|
this.selectedDisabledDates = [];
|
|
28
28
|
this.setLocale();
|
|
29
29
|
}
|
|
@@ -40,13 +40,13 @@ class CalendarComponent extends BaseInputComponent {
|
|
|
40
40
|
if (changes.view) {
|
|
41
41
|
switch (this.view) {
|
|
42
42
|
case 'month':
|
|
43
|
-
this.dateFormat =
|
|
43
|
+
this.dateFormat = 'MM/yy';
|
|
44
44
|
break;
|
|
45
45
|
case 'year':
|
|
46
|
-
this.dateFormat =
|
|
46
|
+
this.dateFormat = 'yy';
|
|
47
47
|
break;
|
|
48
48
|
default:
|
|
49
|
-
this.dateFormat =
|
|
49
|
+
this.dateFormat = 'dd/MM/yy';
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -63,11 +63,24 @@ class CalendarComponent extends BaseInputComponent {
|
|
|
63
63
|
setLocale() {
|
|
64
64
|
this.primeNgConfig.setTranslation({
|
|
65
65
|
firstDayOfWeek: 0,
|
|
66
|
-
dayNames: [
|
|
67
|
-
dayNamesMin: [
|
|
68
|
-
dayNamesShort: [
|
|
69
|
-
monthNames: [
|
|
70
|
-
|
|
66
|
+
dayNames: ['Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi', 'Pazar'],
|
|
67
|
+
dayNamesMin: ['Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt', 'Pzr'],
|
|
68
|
+
dayNamesShort: ['Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt', 'Pzr'],
|
|
69
|
+
monthNames: [
|
|
70
|
+
'Ocak',
|
|
71
|
+
'Şubat',
|
|
72
|
+
'Mart',
|
|
73
|
+
'Nisan',
|
|
74
|
+
'Mayıs',
|
|
75
|
+
'Haziran',
|
|
76
|
+
'Temmuz',
|
|
77
|
+
'Ağustos',
|
|
78
|
+
'Eylül',
|
|
79
|
+
'Ekim',
|
|
80
|
+
'Kasım',
|
|
81
|
+
'Aralık'
|
|
82
|
+
],
|
|
83
|
+
monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
|
|
71
84
|
today: 'Bugün',
|
|
72
85
|
clear: 'Temizle',
|
|
73
86
|
dateFormat: 'dd/mm/yy',
|
|
@@ -75,11 +88,11 @@ class CalendarComponent extends BaseInputComponent {
|
|
|
75
88
|
});
|
|
76
89
|
}
|
|
77
90
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, deps: [{ token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: "minDate", maxDate: "maxDate", inline: "inline", showIcon: "showIcon", showTime: "showTime", showWeek: "showWeek", showSeconds: "showSeconds", disabledDates: "disabledDates", view: "view", selectionMode: "selectionMode", tabindex: "tabindex" }, usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i2.ValueAccessorDirective }], ngImport: i0, template: "<p-calendar\
|
|
91
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: CalendarComponent, isStandalone: true, selector: "aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]", inputs: { minDate: "minDate", maxDate: "maxDate", inline: "inline", showIcon: "showIcon", showTime: "showTime", showWeek: "showWeek", showSeconds: "showSeconds", disabledDates: "disabledDates", view: "view", selectionMode: "selectionMode", tabindex: "tabindex" }, usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i2.ValueAccessorDirective }], ngImport: i0, template: "<p-calendar\n\t[showIcon]=\"true\"\n\t[dateFormat]=\"dateFormat\"\n\t[showButtonBar]=\"true\"\n\t[minDate]=\"minJSDate\"\n\t[maxDate]=\"maxJSDate\"\n\t[tabindex]=\"tabindex\"\n\t[disabledDates]=\"selectedDisabledDates\"\n\t[selectionMode]=\"selectionMode\"\n\t[readonlyInput]=\"true\"\n\t[showTime]=\"showTime\"\n\t[showSeconds]=\"showSeconds\"\n\t[inline]=\"inline\"\n\t[showWeek]=\"showWeek\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t<ng-template pTemplate=\"header\">\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\n\t</ng-template>\n\t<ng-template pTemplate=\"footer\">\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\n\t</ng-template>\n</p-calendar>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CalendarModule }, { kind: "component", type: i4.Calendar, selector: "p-calendar", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
79
92
|
}
|
|
80
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
81
94
|
type: Component,
|
|
82
|
-
args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
95
|
+
args: [{ standalone: true, selector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]', imports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-calendar\n\t[showIcon]=\"true\"\n\t[dateFormat]=\"dateFormat\"\n\t[showButtonBar]=\"true\"\n\t[minDate]=\"minJSDate\"\n\t[maxDate]=\"maxJSDate\"\n\t[tabindex]=\"tabindex\"\n\t[disabledDates]=\"selectedDisabledDates\"\n\t[selectionMode]=\"selectionMode\"\n\t[readonlyInput]=\"true\"\n\t[showTime]=\"showTime\"\n\t[showSeconds]=\"showSeconds\"\n\t[inline]=\"inline\"\n\t[showWeek]=\"showWeek\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t<ng-template pTemplate=\"header\">\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\n\t</ng-template>\n\t<ng-template pTemplate=\"footer\">\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\n\t</ng-template>\n</p-calendar>\n" }]
|
|
83
96
|
}], ctorParameters: () => [{ type: i1.PrimeNGConfig }], propDecorators: { minDate: [{
|
|
84
97
|
type: Input
|
|
85
98
|
}], maxDate: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-calendar.mjs","sources":["../../projects/aril/ui/calendar/src/calendar.component.ts","../../projects/aril/ui/calendar/src/calendar.component.html","../../projects/aril/ui/calendar/aril-ui-calendar.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\
|
|
1
|
+
{"version":3,"file":"aril-ui-calendar.mjs","sources":["../../projects/aril/ui/calendar/src/calendar.component.ts","../../projects/aril/ui/calendar/src/calendar.component.html","../../projects/aril/ui/calendar/aril-ui-calendar.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/* TODOS \n 1. InputSignal\n 2. Adjust different color or background for weekends\n*/\n\nimport { Component, Input, OnChanges } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { CalendarModule } from 'primeng/calendar';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { PrimeNGConfig } from 'primeng/api';\n\nimport { Types } from 'aril/util/lib';\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\nimport 'aril/util/primitive-extensions';\n\ntype View = 'date' | 'month' | 'year';\ntype SelectionMode = 'single' | 'multiple' | 'range';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-calendar[ngModel], aril-calendar[formControl], aril-calendar[formControlName]',\n\ttemplateUrl: './calendar.component.html',\n\timports: [ReactiveFormsModule, CalendarModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class CalendarComponent extends BaseInputComponent implements OnChanges {\n\tconstructor(private primeNgConfig: PrimeNGConfig) {\n\t\tsuper();\n\t\tthis.setLocale();\n\t}\n\n\t@Input() minDate!: number;\n\t@Input() maxDate!: number;\n\t@Input() inline!: boolean;\n\t@Input() showIcon!: boolean;\n\t@Input() showTime!: boolean;\n\t@Input() showWeek!: boolean;\n\t@Input() showSeconds!: boolean;\n\t@Input() disabledDates: number[] = [];\n\t@Input() view: View = 'date';\n\t@Input() selectionMode: SelectionMode = 'single';\n\t@Input() tabindex!: number;\n\n\tminJSDate!: Date;\n\tmaxJSDate!: Date;\n\tdateFormat = 'dd/MM/yy';\n\tselectedDisabledDates: Date[] = [];\n\n\tngOnChanges(changes: Types.NgChanges<CalendarComponent>): void {\n\t\tif (changes.minDate) {\n\t\t\tthis.minJSDate = this.minDate.longToDate() as Date;\n\t\t}\n\t\tif (changes.maxDate) {\n\t\t\tthis.maxJSDate = this.minDate.longToDate() as Date;\n\t\t}\n\t\tif (changes.disabledDates?.currentValue.length) {\n\t\t\tthis.selectedDisabledDates = this.disabledDates.map((value: number) => value.longToDate() as Date);\n\t\t}\n\t\tif (changes.view) {\n\t\t\tswitch (this.view) {\n\t\t\t\tcase 'month':\n\t\t\t\t\tthis.dateFormat = 'MM/yy';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'year':\n\t\t\t\t\tthis.dateFormat = 'yy';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.dateFormat = 'dd/MM/yy';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// isWeekend(date: any): boolean {\n\t// if (!date) {\n\t// return false;\n\t// }\n\n\t// if (this.view == 'date') {\n\t// const dayOfWeek = date.getDay();\n\t// return dayOfWeek === 5 || dayOfWeek === 6;\n\t// }\n\t// }\n\n\tsetLocale() {\n\t\tthis.primeNgConfig.setTranslation({\n\t\t\tfirstDayOfWeek: 0,\n\t\t\tdayNames: ['Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi', 'Pazar'],\n\t\t\tdayNamesMin: ['Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt', 'Pzr'],\n\t\t\tdayNamesShort: ['Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cmt', 'Pzr'],\n\t\t\tmonthNames: [\n\t\t\t\t'Ocak',\n\t\t\t\t'Şubat',\n\t\t\t\t'Mart',\n\t\t\t\t'Nisan',\n\t\t\t\t'Mayıs',\n\t\t\t\t'Haziran',\n\t\t\t\t'Temmuz',\n\t\t\t\t'Ağustos',\n\t\t\t\t'Eylül',\n\t\t\t\t'Ekim',\n\t\t\t\t'Kasım',\n\t\t\t\t'Aralık'\n\t\t\t],\n\t\t\tmonthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],\n\t\t\ttoday: 'Bugün',\n\t\t\tclear: 'Temizle',\n\t\t\tdateFormat: 'dd/mm/yy',\n\t\t\tweekHeader: 'Hafta'\n\t\t});\n\t}\n}\n","<p-calendar\n\t[showIcon]=\"true\"\n\t[dateFormat]=\"dateFormat\"\n\t[showButtonBar]=\"true\"\n\t[minDate]=\"minJSDate\"\n\t[maxDate]=\"maxJSDate\"\n\t[tabindex]=\"tabindex\"\n\t[disabledDates]=\"selectedDisabledDates\"\n\t[selectionMode]=\"selectionMode\"\n\t[readonlyInput]=\"true\"\n\t[showTime]=\"showTime\"\n\t[showSeconds]=\"showSeconds\"\n\t[inline]=\"inline\"\n\t[showWeek]=\"showWeek\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n\t<ng-template pTemplate=\"header\">\n\t\t<ng-content select=\"[calendarHeader]\"></ng-content>\n\t</ng-template>\n\t<ng-template pTemplate=\"footer\">\n\t\t<ng-content select=\"[calendarFooter]\"></ng-content>\n\t</ng-template>\n</p-calendar>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AAEA;;;AAGE;AAuBI,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AACxD,IAAA,WAAA,CAAoB,aAA4B,EAAA;AAC/C,QAAA,KAAK,EAAE,CAAC;QADW,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QAYvC,IAAa,CAAA,aAAA,GAAa,EAAE,CAAC;QAC7B,IAAI,CAAA,IAAA,GAAS,MAAM,CAAC;QACpB,IAAa,CAAA,aAAA,GAAkB,QAAQ,CAAC;QAKjD,IAAU,CAAA,UAAA,GAAG,UAAU,CAAC;QACxB,IAAqB,CAAA,qBAAA,GAAW,EAAE,CAAC;QAlBlC,IAAI,CAAC,SAAS,EAAE,CAAC;KACjB;AAmBD,IAAA,WAAW,CAAC,OAA2C,EAAA;AACtD,QAAA,IAAI,OAAO,CAAC,OAAO,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAU,CAAC;SACnD;AACD,QAAA,IAAI,OAAO,CAAC,OAAO,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAU,CAAC;SACnD;QACD,IAAI,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,MAAM,EAAE;AAC/C,YAAA,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAA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AA,YAAA,EAAA,cAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGvE,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;AACG,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,oFAAoF,EAErF,OAAA,EAAA,CAAC,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,qBAAqB,CAAC,EACpE,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,i3BAAA,EAAA,CAAA;kFAQ/B,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,MAAM,EAAA,CAAA;sBAAd,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;;;AE5CP;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, Component
|
|
2
|
+
import { input, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i3 from 'primeng/checkbox';
|
|
@@ -18,11 +18,11 @@ class CheckboxComponent extends BaseInputComponent {
|
|
|
18
18
|
this.tabindex = input();
|
|
19
19
|
}
|
|
20
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: CheckboxComponent, isStandalone: true, selector: "aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-checkbox\
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: CheckboxComponent, isStandalone: true, selector: "aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-checkbox\n\t[label]=\"label()\"\n\t[tabindex]=\"tabindex()\"\n\t[binary]=\"true\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-checkbox>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i3.Checkbox, selector: "p-checkbox", inputs: ["value", "name", "disabled", "binary", "label", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "styleClass", "labelStyleClass", "formControl", "checkboxIcon", "readonly", "required", "trueValue", "falseValue"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
22
22
|
}
|
|
23
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
|
-
args: [{ standalone: true, selector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]', imports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
25
|
+
args: [{ standalone: true, selector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]', imports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-checkbox\n\t[label]=\"label()\"\n\t[tabindex]=\"tabindex()\"\n\t[binary]=\"true\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-checkbox>\n" }]
|
|
26
26
|
}] });
|
|
27
27
|
|
|
28
28
|
class TriStateCheckboxComponent extends BaseInputComponent {
|
|
@@ -32,11 +32,11 @@ class TriStateCheckboxComponent extends BaseInputComponent {
|
|
|
32
32
|
this.tabindex = input();
|
|
33
33
|
}
|
|
34
34
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TriStateCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TriStateCheckboxComponent, isStandalone: true, selector: "aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-triStateCheckbox\
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.1.2", type: TriStateCheckboxComponent, isStandalone: true, selector: "aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, hostDirectives: [{ directive: i1.ValueAccessorDirective }], ngImport: i0, template: "<p-triStateCheckbox\n\t[label]=\"label()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-triStateCheckbox>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TriStateCheckboxModule }, { kind: "component", type: i3$1.TriStateCheckbox, selector: "p-triStateCheckbox", inputs: ["disabled", "name", "ariaLabel", "ariaLabelledBy", "tabindex", "inputId", "style", "styleClass", "label", "readonly", "checkboxTrueIcon", "checkboxFalseIcon"], outputs: ["onChange"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: InputErrorMessagePipe, name: "inputErrorMessage" }] }); }
|
|
36
36
|
}
|
|
37
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TriStateCheckboxComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
39
|
-
args: [{ standalone: true, selector: 'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]', imports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective],
|
|
39
|
+
args: [{ standalone: true, selector: 'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]', imports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe], hostDirectives: [ValueAccessorDirective], template: "<p-triStateCheckbox\n\t[label]=\"label()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-triStateCheckbox>\n" }]
|
|
40
40
|
}] });
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-checkbox.mjs","sources":["../../projects/aril/ui/checkbox/src/check-box.component.ts","../../projects/aril/ui/checkbox/src/check-box.component.html","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.ts","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.html","../../projects/aril/ui/checkbox/aril-ui-checkbox.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"aril-ui-checkbox.mjs","sources":["../../projects/aril/ui/checkbox/src/check-box.component.ts","../../projects/aril/ui/checkbox/src/check-box.component.html","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.ts","../../projects/aril/ui/checkbox/src/tri-state-checkbox.component.html","../../projects/aril/ui/checkbox/aril-ui-checkbox.ts"],"sourcesContent":["import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { CheckboxModule } from 'primeng/checkbox';\nimport { TooltipModule } from 'primeng/tooltip';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-checkbox[ngModel], aril-checkbox[formControl], aril-checkbox[formControlName]',\n\ttemplateUrl: './check-box.component.html',\n\timports: [ReactiveFormsModule, CheckboxModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class CheckboxComponent extends BaseInputComponent {\n\tlabel = input.required<string>();\n\ttabindex = input<number>();\n}\n","<p-checkbox\n\t[label]=\"label()\"\n\t[tabindex]=\"tabindex()\"\n\t[binary]=\"true\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-checkbox>\n","import { Component, input } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'primeng/tooltip';\nimport { TriStateCheckboxModule } from 'primeng/tristatecheckbox';\n\nimport { BaseInputComponent, InputErrorMessagePipe, ValueAccessorDirective } from 'aril/ui/lib';\n\n@Component({\n\tstandalone: true,\n\tselector:\n\t\t'aril-tri-state-checkbox[ngModel], aril-tri-state-checkbox[formControl], aril-tri-state-checkbox[formControlName]',\n\ttemplateUrl: './tri-state-checkbox.component.html',\n\timports: [ReactiveFormsModule, TriStateCheckboxModule, TooltipModule, InputErrorMessagePipe],\n\thostDirectives: [ValueAccessorDirective]\n})\nexport class TriStateCheckboxComponent extends BaseInputComponent {\n\tlabel = input.required<string>();\n\ttabindex = input<number>();\n}\n","<p-triStateCheckbox\n\t[label]=\"label()\"\n\t[pTooltip]=\"ngControl.invalid ? (ngControl.control.value | inputErrorMessage: ngControl) : ''\"\n\t[tooltipOptions]=\"tooltipOptions\"\n\t[formControl]=\"ngControl.control\"\n\t(ngModelChange)=\"ngControl.viewToModelUpdate($event)\">\n</p-triStateCheckbox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;AAeM,MAAO,iBAAkB,SAAQ,kBAAkB,CAAA;AAPzD,IAAA,WAAA,GAAA;;AAQC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;QACjC,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU,CAAC;AAC3B,KAAA;8GAHY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oFAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EA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BAAqB,CAAC,EAC5E,cAAA,EAAA,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,mTAAA,EAAA,CAAA;;;AEdzC;;AAEG;;;;"}
|
|
@@ -12,21 +12,21 @@ class DxFieldComponent {
|
|
|
12
12
|
this.valueWidth = 70;
|
|
13
13
|
}
|
|
14
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.1.2", type: DxFieldComponent, isStandalone: true, selector: "aril-dx-field", inputs: { label: "label", color: "color", labelWidth: ["labelWidth", "labelWidth", (value) => value +
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.1.2", type: DxFieldComponent, isStandalone: true, selector: "aril-dx-field", inputs: { label: "label", color: "color", labelWidth: ["labelWidth", "labelWidth", (value) => value + '%'], valueWidth: ["valueWidth", "valueWidth", (value) => value + '%'] }, ngImport: i0, template: "<div class=\"dx-field\">\n\t<div class=\"dx-field-label font-bold\" [ngStyle]=\"{ color: color, width: labelWidth }\">\n\t\t{{ label }}\n\t</div>\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16
16
|
}
|
|
17
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DxFieldComponent, decorators: [{
|
|
18
18
|
type: Component,
|
|
19
|
-
args: [{ standalone: true, selector: 'aril-dx-field', imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dx-field\">\
|
|
19
|
+
args: [{ standalone: true, selector: 'aril-dx-field', imports: [NgStyle], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"dx-field\">\n\t<div class=\"dx-field-label font-bold\" [ngStyle]=\"{ color: color, width: labelWidth }\">\n\t\t{{ label }}\n\t</div>\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
|
|
20
20
|
}], propDecorators: { label: [{
|
|
21
21
|
type: Input
|
|
22
22
|
}], color: [{
|
|
23
23
|
type: Input
|
|
24
24
|
}], labelWidth: [{
|
|
25
25
|
type: Input,
|
|
26
|
-
args: [{ transform: (value) => value +
|
|
26
|
+
args: [{ transform: (value) => value + '%' }]
|
|
27
27
|
}], valueWidth: [{
|
|
28
28
|
type: Input,
|
|
29
|
-
args: [{ transform: (value) => value +
|
|
29
|
+
args: [{ transform: (value) => value + '%' }]
|
|
30
30
|
}] } });
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-dxField.mjs","sources":["../../projects/aril/ui/dxField/src/dx-field.component.ts","../../projects/aril/ui/dxField/src/dx-field.component.html","../../projects/aril/ui/dxField/aril-ui-dxField.ts"],"sourcesContent":["import { NgStyle } from '@angular/common';\
|
|
1
|
+
{"version":3,"file":"aril-ui-dxField.mjs","sources":["../../projects/aril/ui/dxField/src/dx-field.component.ts","../../projects/aril/ui/dxField/src/dx-field.component.html","../../projects/aril/ui/dxField/aril-ui-dxField.ts"],"sourcesContent":["import { NgStyle } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\n/* TODO : \n 1. InputSignal\n*/\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-dx-field',\n\ttemplateUrl: './dx-field.component.html',\n\timports: [NgStyle],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DxFieldComponent {\n\t@Input() label!: string;\n\t@Input() color = '#333';\n\t@Input({ transform: (value: number) => value + '%' }) labelWidth = 30;\n\t@Input({ transform: (value: number) => value + '%' }) valueWidth = 70;\n}\n","<div class=\"dx-field\">\n\t<div class=\"dx-field-label font-bold\" [ngStyle]=\"{ color: color, width: labelWidth }\">\n\t\t{{ label }}\n\t</div>\n\t<div class=\"dx-field-value\" [ngStyle]=\"{ width: valueWidth }\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEE;MASW,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QASU,IAAK,CAAA,KAAA,GAAG,MAAM,CAAC;QAC8B,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;QAChB,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;AACtE,KAAA;8GALY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA,KAAA,EAAA,OAAA,EAAA,UAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAGR,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,CAAA,EAAA,UAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAC9B,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,CAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EClBnD,4QAQA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGW,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FAGL,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,SAAS;iCACG,IAAI,EAAA,QAAA,EACN,eAAe,EAEhB,OAAA,EAAA,CAAC,OAAO,CAAC,EAAA,eAAA,EACD,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4QAAA,EAAA,CAAA;8BAGtC,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACgD,UAAU,EAAA,CAAA;sBAA/D,KAAK;uBAAC,EAAE,SAAS,EAAE,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,EAAE,CAAA;gBACE,UAAU,EAAA,CAAA;sBAA/D,KAAK;uBAAC,EAAE,SAAS,EAAE,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,EAAE,CAAA;;;AElBrD;;AAEG;;;;"}
|
|
@@ -4,7 +4,7 @@ import { DxFieldComponent } from 'aril/ui/dxField';
|
|
|
4
4
|
|
|
5
5
|
class FieldComponent {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.labelPos =
|
|
7
|
+
this.labelPos = 'top';
|
|
8
8
|
this.color = '#333';
|
|
9
9
|
this.labelWidth = 30;
|
|
10
10
|
this.valueWidth = 70;
|
|
@@ -12,15 +12,17 @@ class FieldComponent {
|
|
|
12
12
|
this.padding = '.5rem';
|
|
13
13
|
}
|
|
14
14
|
set cols(value) {
|
|
15
|
-
this.hostClass =
|
|
16
|
-
Object.entries(value).forEach(([key, value]) => {
|
|
15
|
+
this.hostClass = '';
|
|
16
|
+
Object.entries(value).forEach(([key, value]) => {
|
|
17
|
+
this.hostClass += `${key}:col-${value} `;
|
|
18
|
+
});
|
|
17
19
|
}
|
|
18
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
19
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FieldComponent, isStandalone: true, selector: "aril-field", inputs: { label: "label", labelPos: "labelPos", color: "color", labelWidth: ["labelWidth", "labelWidth", (value) => value +
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FieldComponent, isStandalone: true, selector: "aril-field", inputs: { label: "label", labelPos: "labelPos", color: "color", labelWidth: ["labelWidth", "labelWidth", (value) => value + '%'], valueWidth: ["valueWidth", "valueWidth", (value) => value + '%'], markAsRequired: "markAsRequired", cols: "cols" }, host: { properties: { "class": "this.hostClass", "style.padding": "this.padding" } }, ngImport: i0, template: "@if (labelPos === 'left') {\n\t<aril-dx-field [label]=\"label\" [color]=\"color\" [labelWidth]=\"labelWidth\" [valueWidth]=\"valueWidth\">\n\t\t<ng-content></ng-content>\n\t</aril-dx-field>\n} @else {\n\t@if (label) {\n\t\t<div class=\"mb-1\">\n\t\t\t<span class=\"font-bold\">{{ markAsRequired && '*' }}{{ label }}</span>\n\t\t</div>\n\t}\n\t<ng-content></ng-content>\n}\n", dependencies: [{ kind: "component", type: DxFieldComponent, selector: "aril-dx-field", inputs: ["label", "color", "labelWidth", "valueWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
20
22
|
}
|
|
21
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FieldComponent, decorators: [{
|
|
22
24
|
type: Component,
|
|
23
|
-
args: [{ standalone: true, selector: 'aril-field', imports: [DxFieldComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (labelPos === 'left') {\n\t<aril-dx-field
|
|
25
|
+
args: [{ standalone: true, selector: 'aril-field', imports: [DxFieldComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (labelPos === 'left') {\n\t<aril-dx-field [label]=\"label\" [color]=\"color\" [labelWidth]=\"labelWidth\" [valueWidth]=\"valueWidth\">\n\t\t<ng-content></ng-content>\n\t</aril-dx-field>\n} @else {\n\t@if (label) {\n\t\t<div class=\"mb-1\">\n\t\t\t<span class=\"font-bold\">{{ markAsRequired && '*' }}{{ label }}</span>\n\t\t</div>\n\t}\n\t<ng-content></ng-content>\n}\n" }]
|
|
24
26
|
}], propDecorators: { label: [{
|
|
25
27
|
type: Input,
|
|
26
28
|
args: [{ required: true }]
|
|
@@ -30,10 +32,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
30
32
|
type: Input
|
|
31
33
|
}], labelWidth: [{
|
|
32
34
|
type: Input,
|
|
33
|
-
args: [{ transform: (value) => value +
|
|
35
|
+
args: [{ transform: (value) => value + '%' }]
|
|
34
36
|
}], valueWidth: [{
|
|
35
37
|
type: Input,
|
|
36
|
-
args: [{ transform: (value) => value +
|
|
38
|
+
args: [{ transform: (value) => value + '%' }]
|
|
37
39
|
}], markAsRequired: [{
|
|
38
40
|
type: Input
|
|
39
41
|
}], cols: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-field.mjs","sources":["../../projects/aril/ui/field/src/field.component.ts","../../projects/aril/ui/field/src/field.component.html","../../projects/aril/ui/field/aril-ui-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';\
|
|
1
|
+
{"version":3,"file":"aril-ui-field.mjs","sources":["../../projects/aril/ui/field/src/field.component.ts","../../projects/aril/ui/field/src/field.component.html","../../projects/aril/ui/field/aril-ui-field.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';\n\nimport { Types } from 'aril/util/lib';\nimport { DxFieldComponent } from 'aril/ui/dxField';\n\n/* TODO : \n 1. InputSignal\n*/\n\ntype LabelPositions = 'top' | 'left';\n\ninterface ColumnSizeTypes {\n\txl?: Types.NumberRange<1, 13>;\n\tlg?: Types.NumberRange<1, 13>;\n\tmd?: Types.NumberRange<1, 13>;\n\tsm?: Types.NumberRange<1, 13>;\n}\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-field',\n\ttemplateUrl: './field.component.html',\n\timports: [DxFieldComponent],\n\tchangeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FieldComponent {\n\t@Input({ required: true }) label!: string;\n\t@Input() labelPos: LabelPositions = 'top';\n\t@Input() color = '#333';\n\t@Input({ transform: (value: number) => value + '%' }) labelWidth = 30;\n\t@Input({ transform: (value: number) => value + '%' }) valueWidth = 70;\n\t@Input() markAsRequired!: boolean;\n\t@Input({ required: true }) set cols(value: ColumnSizeTypes) {\n\t\tthis.hostClass = '';\n\t\tObject.entries(value).forEach(([key, value]) => {\n\t\t\tthis.hostClass += `${key}:col-${value} `;\n\t\t});\n\t}\n\n\t@HostBinding('class') hostClass = '';\n\t@HostBinding('style.padding') padding = '.5rem';\n}\n","@if (labelPos === 'left') {\n\t<aril-dx-field [label]=\"label\" [color]=\"color\" [labelWidth]=\"labelWidth\" [valueWidth]=\"valueWidth\">\n\t\t<ng-content></ng-content>\n\t</aril-dx-field>\n} @else {\n\t@if (label) {\n\t\t<div class=\"mb-1\">\n\t\t\t<span class=\"font-bold\">{{ markAsRequired && '*' }}{{ label }}</span>\n\t\t</div>\n\t}\n\t<ng-content></ng-content>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAyBa,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;QASU,IAAQ,CAAA,QAAA,GAAmB,KAAK,CAAC;QACjC,IAAK,CAAA,KAAA,GAAG,MAAM,CAAC;QAC8B,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;QAChB,IAAU,CAAA,UAAA,GAAG,EAAE,CAAC;QAShD,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;QACP,IAAO,CAAA,OAAA,GAAG,OAAO,CAAC;AAChD,KAAA;IATA,IAA+B,IAAI,CAAC,KAAsB,EAAA;AACzD,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;AACpB,QAAA,MAAM,CAA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,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uXAAA,EAAA,CAAA;8BAGpB,KAAK,EAAA,CAAA;sBAA/B,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAChB,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACgD,UAAU,EAAA,CAAA;sBAA/D,KAAK;uBAAC,EAAE,SAAS,EAAE,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,EAAE,CAAA;gBACE,UAAU,EAAA,CAAA;sBAA/D,KAAK;uBAAC,EAAE,SAAS,EAAE,CAAC,KAAa,KAAK,KAAK,GAAG,GAAG,EAAE,CAAA;gBAC3C,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACyB,IAAI,EAAA,CAAA;sBAAlC,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAOH,SAAS,EAAA,CAAA;sBAA9B,WAAW;uBAAC,OAAO,CAAA;gBACU,OAAO,EAAA,CAAA;sBAApC,WAAW;uBAAC,eAAe,CAAA;;;AExC7B;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component,
|
|
2
|
+
import { EventEmitter, Component, Input, Output } from '@angular/core';
|
|
3
3
|
import * as i2 from 'primeng/fileupload';
|
|
4
4
|
import { FileUploadModule } from 'primeng/fileupload';
|
|
5
5
|
import * as i1 from 'primeng/api';
|
|
@@ -9,19 +9,19 @@ class FileUploadComponent {
|
|
|
9
9
|
constructor(messageService) {
|
|
10
10
|
this.messageService = messageService;
|
|
11
11
|
this.multiple = false;
|
|
12
|
-
this.accept =
|
|
12
|
+
this.accept = '.xlsx';
|
|
13
13
|
this.disabled = false;
|
|
14
14
|
this.auto = false;
|
|
15
15
|
this.withCredentials = false;
|
|
16
16
|
this.showUploadButton = true;
|
|
17
17
|
this.showCancelButton = true;
|
|
18
|
-
this.cancelLabel =
|
|
19
|
-
this.chooseLabel =
|
|
20
|
-
this.uploadLabel =
|
|
21
|
-
this.invalidFileTypeMessageSummary =
|
|
22
|
-
this.invalidFileTypeMessageDetail =
|
|
23
|
-
this.invalidFileSizeMessageSummary =
|
|
24
|
-
this.invalidFileSizeMessageDetail =
|
|
18
|
+
this.cancelLabel = 'Temizle';
|
|
19
|
+
this.chooseLabel = 'Dosyayi Seç';
|
|
20
|
+
this.uploadLabel = 'Dosyayi Yükle';
|
|
21
|
+
this.invalidFileTypeMessageSummary = 'Geçersiz dosya türü';
|
|
22
|
+
this.invalidFileTypeMessageDetail = 'Seçilen dosya türü desteklenmiyor.';
|
|
23
|
+
this.invalidFileSizeMessageSummary = 'Dosya boyutu çok büyük';
|
|
24
|
+
this.invalidFileSizeMessageDetail = 'Dosya boyutu izin verilen maksimum boyuttan daha büyük.';
|
|
25
25
|
this.beforeSend = new EventEmitter();
|
|
26
26
|
this.upload = new EventEmitter();
|
|
27
27
|
this.errors = new EventEmitter();
|
|
@@ -35,11 +35,11 @@ class FileUploadComponent {
|
|
|
35
35
|
this.messageService.add({ severity: 'success', summary: 'Dosya başarıyla yüklendi..', detail: '' });
|
|
36
36
|
}
|
|
37
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, deps: [{ token: i1.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: "name", url: "url", multiple: "multiple", accept: "accept", disabled: "disabled", auto: "auto", maxFileSize: "maxFileSize", tabindex: "tabindex", withCredentials: "withCredentials", showUploadButton: "showUploadButton", showCancelButton: "showCancelButton", cancelLabel: "cancelLabel", chooseLabel: "chooseLabel", uploadLabel: "uploadLabel", invalidFileTypeMessageSummary: "invalidFileTypeMessageSummary", invalidFileTypeMessageDetail: "invalidFileTypeMessageDetail", invalidFileSizeMessageSummary: "invalidFileSizeMessageSummary", invalidFileSizeMessageDetail: "invalidFileSizeMessageDetail" }, outputs: { beforeSend: "beforeSend", upload: "upload", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: FileUploadComponent, isStandalone: true, selector: "aril-file-upload", inputs: { name: "name", url: "url", multiple: "multiple", accept: "accept", disabled: "disabled", auto: "auto", maxFileSize: "maxFileSize", tabindex: "tabindex", withCredentials: "withCredentials", showUploadButton: "showUploadButton", showCancelButton: "showCancelButton", cancelLabel: "cancelLabel", chooseLabel: "chooseLabel", uploadLabel: "uploadLabel", invalidFileTypeMessageSummary: "invalidFileTypeMessageSummary", invalidFileTypeMessageDetail: "invalidFileTypeMessageDetail", invalidFileSizeMessageSummary: "invalidFileSizeMessageSummary", invalidFileSizeMessageDetail: "invalidFileSizeMessageDetail" }, outputs: { beforeSend: "beforeSend", upload: "upload", errors: "errors", selects: "selects", clear: "clear" }, providers: [MessageService], ngImport: i0, template: "<p-fileUpload\n\t[name]=\"name\"\n\t[url]=\"url\"\n\tmethod=\"post\"\n\t[multiple]=\"multiple\"\n\t[accept]=\"accept\"\n\t[disabled]=\"disabled\"\n\t[auto]=\"auto\"\n\t[maxFileSize]=\"maxFileSize\"\n\t[tabindex]=\"tabindex\"\n\t[withCredentials]=\"withCredentials\"\n\t[showUploadButton]=\"showUploadButton\"\n\t[showCancelButton]=\"showCancelButton\"\n\t[chooseLabel]=\"chooseLabel\"\n\t[cancelLabel]=\"cancelLabel\"\n\t[uploadLabel]=\"uploadLabel\"\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary\"\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail\"\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary\"\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail\"\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\n\t(onUpload)=\"onUpload($event)\"\n\t(onError)=\"errors.emit($event)\"\n\t(onSelect)=\"selects.emit($event)\"\n\t(onClear)=\"clear.emit($event)\">\n\t<ng-template pTemplate=\"content\">\n\t\t@if (uploadedFiles.length) {\n\t\t\t<div class=\"flex flex-column\">\n\t\t\t\t@for (file of uploadedFiles; track file) {\n\t\t\t\t\t<div class=\"mt-2\">\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</ng-template>\n\t<ng-content></ng-content>\n</p-fileUpload>\n", dependencies: [{ kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i2.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError"] }, { kind: "directive", type: i1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] }); }
|
|
39
39
|
}
|
|
40
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
|
-
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule], providers: [MessageService],
|
|
42
|
+
args: [{ standalone: true, selector: 'aril-file-upload', imports: [FileUploadModule], providers: [MessageService], template: "<p-fileUpload\n\t[name]=\"name\"\n\t[url]=\"url\"\n\tmethod=\"post\"\n\t[multiple]=\"multiple\"\n\t[accept]=\"accept\"\n\t[disabled]=\"disabled\"\n\t[auto]=\"auto\"\n\t[maxFileSize]=\"maxFileSize\"\n\t[tabindex]=\"tabindex\"\n\t[withCredentials]=\"withCredentials\"\n\t[showUploadButton]=\"showUploadButton\"\n\t[showCancelButton]=\"showCancelButton\"\n\t[chooseLabel]=\"chooseLabel\"\n\t[cancelLabel]=\"cancelLabel\"\n\t[uploadLabel]=\"uploadLabel\"\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary\"\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail\"\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary\"\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail\"\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\n\t(onUpload)=\"onUpload($event)\"\n\t(onError)=\"errors.emit($event)\"\n\t(onSelect)=\"selects.emit($event)\"\n\t(onClear)=\"clear.emit($event)\">\n\t<ng-template pTemplate=\"content\">\n\t\t@if (uploadedFiles.length) {\n\t\t\t<div class=\"flex flex-column\">\n\t\t\t\t@for (file of uploadedFiles; track file) {\n\t\t\t\t\t<div class=\"mt-2\">\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</ng-template>\n\t<ng-content></ng-content>\n</p-fileUpload>\n" }]
|
|
43
43
|
}], ctorParameters: () => [{ type: i1.MessageService }], propDecorators: { name: [{
|
|
44
44
|
type: Input
|
|
45
45
|
}], url: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-ui-fileUpload.mjs","sources":["../../projects/aril/ui/fileUpload/src/file-upload.component.ts","../../projects/aril/ui/fileUpload/src/file-upload.component.html","../../projects/aril/ui/fileUpload/aril-ui-fileUpload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\
|
|
1
|
+
{"version":3,"file":"aril-ui-fileUpload.mjs","sources":["../../projects/aril/ui/fileUpload/src/file-upload.component.ts","../../projects/aril/ui/fileUpload/src/file-upload.component.html","../../projects/aril/ui/fileUpload/aril-ui-fileUpload.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { HttpEvent } from '@angular/common/http';\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { FileUploadModule } from 'primeng/fileupload';\nimport { MessageService } from 'primeng/api';\n\n/* TODO : \n 1. InputSignal\n*/\n\ninterface UploadEvent {\n\toriginalEvent: HttpEvent<any>;\n\tfiles: File[];\n}\n\ninterface UploadFile {\n\tname: string;\n\tsize: number;\n\ttype: string;\n\tobjectURL?: string;\n}\n\n@Component({\n\tstandalone: true,\n\tselector: 'aril-file-upload',\n\ttemplateUrl: './file-upload.component.html',\n\timports: [FileUploadModule],\n\tproviders: [MessageService]\n})\nexport class FileUploadComponent {\n\tconstructor(private messageService: MessageService) {}\n\n\t@Input() name!: string;\n\t@Input({ required: true }) url!: string;\n\t@Input() multiple = false;\n\t@Input() accept = '.xlsx';\n\t@Input() disabled = false;\n\t@Input() auto = false;\n\t@Input() maxFileSize!: number;\n\t@Input() tabindex!: number;\n\t@Input() withCredentials = false;\n\t@Input() showUploadButton = true;\n\t@Input() showCancelButton = true;\n\t@Input() cancelLabel = 'Temizle';\n\t@Input() chooseLabel = 'Dosyayi Seç';\n\t@Input() uploadLabel = 'Dosyayi Yükle';\n\t@Input() invalidFileTypeMessageSummary = 'Geçersiz dosya türü';\n\t@Input() invalidFileTypeMessageDetail = 'Seçilen dosya türü desteklenmiyor.';\n\t@Input() invalidFileSizeMessageSummary = 'Dosya boyutu çok büyük';\n\t@Input() invalidFileSizeMessageDetail = 'Dosya boyutu izin verilen maksimum boyuttan daha büyük.';\n\n\t@Output() beforeSend: EventEmitter<unknown> = new EventEmitter();\n\t@Output() upload: EventEmitter<unknown> = new EventEmitter();\n\t@Output() errors: EventEmitter<unknown> = new EventEmitter();\n\t@Output() selects: EventEmitter<unknown> = new EventEmitter();\n\t@Output() clear: EventEmitter<unknown> = new EventEmitter();\n\n\tuploadedFiles: UploadFile[] = [];\n\n\tonUpload(event: UploadEvent) {\n\t\tthis.upload.emit(event);\n\t\tthis.uploadedFiles = event.files;\n\t\tthis.messageService.add({ severity: 'success', summary: 'Dosya başarıyla yüklendi..', detail: '' });\n\t}\n}\n","<p-fileUpload\n\t[name]=\"name\"\n\t[url]=\"url\"\n\tmethod=\"post\"\n\t[multiple]=\"multiple\"\n\t[accept]=\"accept\"\n\t[disabled]=\"disabled\"\n\t[auto]=\"auto\"\n\t[maxFileSize]=\"maxFileSize\"\n\t[tabindex]=\"tabindex\"\n\t[withCredentials]=\"withCredentials\"\n\t[showUploadButton]=\"showUploadButton\"\n\t[showCancelButton]=\"showCancelButton\"\n\t[chooseLabel]=\"chooseLabel\"\n\t[cancelLabel]=\"cancelLabel\"\n\t[uploadLabel]=\"uploadLabel\"\n\t[invalidFileTypeMessageSummary]=\"invalidFileTypeMessageSummary\"\n\t[invalidFileTypeMessageDetail]=\"invalidFileTypeMessageDetail\"\n\t[invalidFileSizeMessageSummary]=\"invalidFileSizeMessageSummary\"\n\t[invalidFileSizeMessageDetail]=\"invalidFileSizeMessageDetail\"\n\t(onBeforeSend)=\"beforeSend.emit($event)\"\n\t(onUpload)=\"onUpload($event)\"\n\t(onError)=\"errors.emit($event)\"\n\t(onSelect)=\"selects.emit($event)\"\n\t(onClear)=\"clear.emit($event)\">\n\t<ng-template pTemplate=\"content\">\n\t\t@if (uploadedFiles.length) {\n\t\t\t<div class=\"flex flex-column\">\n\t\t\t\t@for (file of uploadedFiles; track file) {\n\t\t\t\t\t<div class=\"mt-2\">\n\t\t\t\t\t\t<i class=\"pi pi-file-excel\" style=\"color: slateblue; font-size: 1.4rem\"></i>\n\t\t\t\t\t\t{{ file.name }} - {{ file.size }} bytes\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t}\n\t</ng-template>\n\t<ng-content></ng-content>\n</p-fileUpload>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MA+Ba,mBAAmB,CAAA;AAC/B,IAAA,WAAA,CAAoB,cAA8B,EAAA;QAA9B,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;QAIzC,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QACjB,IAAM,CAAA,MAAA,GAAG,OAAO,CAAC;QACjB,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;QACjB,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;QAGb,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;QACxB,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC;QACxB,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAC;QACxB,IAAW,CAAA,WAAA,GAAG,SAAS,CAAC;QACxB,IAAW,CAAA,WAAA,GAAG,aAAa,CAAC;QAC5B,IAAW,CAAA,WAAA,GAAG,eAAe,CAAC;QAC9B,IAA6B,CAAA,6BAAA,GAAG,qBAAqB,CAAC;QACtD,IAA4B,CAAA,4BAAA,GAAG,oCAAoC,CAAC;QACpE,IAA6B,CAAA,6BAAA,GAAG,wBAAwB,CAAC;QACzD,IAA4B,CAAA,4BAAA,GAAG,yDAAyD,CAAC;AAExF,QAAA,IAAA,CAAA,UAAU,GAA0B,IAAI,YAAY,EAAE,CAAC;AACvD,QAAA,IAAA,CAAA,MAAM,GAA0B,IAAI,YAAY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