bromcom-ui 2.7.36-rc.11 → 2.7.36-rc.12-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/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-ab7bb0f5.entry.js → p-118e711c.entry.js} +1 -1
- package/dist/bromcom-ui/p-121e4ca5.js +5 -0
- package/dist/bromcom-ui/{p-ae99e107.entry.js → p-25f444e7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8a66f4e1.entry.js → p-26e68ec6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-89241a6e.entry.js → p-27c8e474.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ed6d2390.entry.js → p-2ec58d06.entry.js} +1 -1
- package/dist/bromcom-ui/{p-81dff515.entry.js → p-2fc5b5bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c5c60034.entry.js → p-3cd7aace.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c5dcbc05.entry.js → p-41d1f8b7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c268491e.entry.js → p-505b1f51.entry.js} +1 -1
- package/dist/bromcom-ui/{p-950af117.js → p-5d337c50.js} +1 -1
- package/dist/bromcom-ui/{p-a7f8e8af.entry.js → p-5e502028.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a6fb1b6f.js → p-5f46c328.js} +1 -1
- package/dist/bromcom-ui/{p-d2101bab.entry.js → p-6711d370.entry.js} +1 -1
- package/dist/bromcom-ui/p-6b61ef5d.js +5 -0
- package/dist/bromcom-ui/{p-36168a4c.entry.js → p-76e8a020.entry.js} +1 -1
- package/dist/bromcom-ui/{p-49be07bc.entry.js → p-80cdeb5b.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0505b430.entry.js → p-831fa0e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ed8e6005.entry.js → p-83332466.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c211b1a.entry.js → p-885292bf.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1e4c4c89.entry.js → p-8ad347e0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8a189e31.entry.js → p-965d1cb2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c00cbc3c.js → p-9ab7c5f9.js} +1 -1
- package/dist/bromcom-ui/{p-7386f0eb.entry.js → p-a18bb86e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2f22f4b.js → p-a25d4102.js} +1 -1
- package/dist/bromcom-ui/{p-01951e92.entry.js → p-a57c40a2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-16f3143c.entry.js → p-a6f49d6c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-cef328d2.entry.js → p-a7acf688.entry.js} +1 -1
- package/dist/bromcom-ui/{p-50d9b950.entry.js → p-aedac6e4.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d2d00b45.entry.js → p-b6c04be0.entry.js} +1 -1
- package/dist/bromcom-ui/{p-eefa89b6.entry.js → p-bb4a5441.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1aa2c6f1.entry.js → p-bbeb3aa8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ae8f263e.entry.js → p-c0648349.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b0ecb69b.entry.js → p-c0a49e8e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-7d21bcdb.entry.js → p-ca48c3aa.entry.js} +1 -1
- package/dist/bromcom-ui/{p-febeb28c.entry.js → p-cad94133.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fcd2ded4.entry.js → p-cf48e4bd.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d8ef8c9d.entry.js → p-cf68a762.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4595d534.entry.js → p-cfeac4c2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-c8dae4b7.entry.js → p-d0ae1e25.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b339c2f1.entry.js → p-e58a867d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-97a630d5.entry.js → p-e97f680e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d7189ee1.entry.js → p-f559a41c.entry.js} +1 -1
- package/dist/bromcom-ui/p-fb65423b.js +5 -0
- package/dist/bromcom-ui/{p-00028e84.entry.js → p-fb8d1e47.entry.js} +1 -1
- package/package.json +1 -1
- package/dist/bromcom-ui/p-3330b325.js +0 -5
- package/dist/bromcom-ui/p-940d3fc3.js +0 -5
- package/dist/bromcom-ui/p-bddecc0e.js +0 -5
- package/dist/cjs/_commonjsHelpers-bd20f4c0.js +0 -29
- package/dist/cjs/bcm-2c51bf0c.js +0 -448
- package/dist/cjs/bcm-accordion.cjs.entry.js +0 -85
- package/dist/cjs/bcm-alert.cjs.entry.js +0 -112
- package/dist/cjs/bcm-attendance.cjs.entry.js +0 -50
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +0 -155
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -156
- package/dist/cjs/bcm-box.cjs.entry.js +0 -35
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +0 -67
- package/dist/cjs/bcm-button-group.cjs.entry.js +0 -102
- package/dist/cjs/bcm-button_13.cjs.entry.js +0 -1981
- package/dist/cjs/bcm-card.cjs.entry.js +0 -76
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -409
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +0 -2570
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -203
- package/dist/cjs/bcm-chip.cjs.entry.js +0 -70
- package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -57
- package/dist/cjs/bcm-collapse.cjs.entry.js +0 -58
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +0 -433
- package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -171
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1432
- package/dist/cjs/bcm-default.cjs.entry.js +0 -40
- package/dist/cjs/bcm-drawer.cjs.entry.js +0 -111
- package/dist/cjs/bcm-error-layout.cjs.entry.js +0 -78
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +0 -127
- package/dist/cjs/bcm-form-2.cjs.entry.js +0 -205
- package/dist/cjs/bcm-form-group.cjs.entry.js +0 -45
- package/dist/cjs/bcm-input.cjs.entry.js +0 -324
- package/dist/cjs/bcm-link.cjs.entry.js +0 -62
- package/dist/cjs/bcm-linked.cjs.entry.js +0 -83
- package/dist/cjs/bcm-list.cjs.entry.js +0 -1761
- package/dist/cjs/bcm-message.cjs.entry.js +0 -99
- package/dist/cjs/bcm-modal.cjs.entry.js +0 -137
- package/dist/cjs/bcm-notification.cjs.entry.js +0 -103
- package/dist/cjs/bcm-old-input.cjs.entry.js +0 -398
- package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -157
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +0 -122
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +0 -112
- package/dist/cjs/bcm-progress.cjs.entry.js +0 -174
- package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -267
- package/dist/cjs/bcm-radio.cjs.entry.js +0 -104
- package/dist/cjs/bcm-range.cjs.entry.js +0 -189
- package/dist/cjs/bcm-result.cjs.entry.js +0 -79
- package/dist/cjs/bcm-search.cjs.entry.js +0 -256
- package/dist/cjs/bcm-select-group.cjs.entry.js +0 -31
- package/dist/cjs/bcm-select-option.cjs.entry.js +0 -37
- package/dist/cjs/bcm-select.cjs.entry.js +0 -1181
- package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -56
- package/dist/cjs/bcm-step.cjs.entry.js +0 -93
- package/dist/cjs/bcm-stepper.cjs.entry.js +0 -211
- package/dist/cjs/bcm-tab-group.cjs.entry.js +0 -172
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +0 -70
- package/dist/cjs/bcm-tab.cjs.entry.js +0 -89
- package/dist/cjs/bcm-table.cjs.entry.js +0 -78
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +0 -62
- package/dist/cjs/bcm-tabs.cjs.entry.js +0 -390
- package/dist/cjs/bcm-tag.cjs.entry.js +0 -101
- package/dist/cjs/bcm-textarea.cjs.entry.js +0 -150
- package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -139
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +0 -55
- package/dist/cjs/bcm-timeline.cjs.entry.js +0 -73
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +0 -23
- package/dist/cjs/bromcom-ui.cjs.js +0 -24
- package/dist/cjs/caption-template-abc6b8bd.js +0 -34
- package/dist/cjs/color-helper-c9882bd8.js +0 -490
- package/dist/cjs/colors-56282b00.js +0 -224
- package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
- package/dist/cjs/element-dragger-a8562f82.js +0 -279
- package/dist/cjs/generate-f31baeb2.js +0 -198
- package/dist/cjs/global-b0d21446.js +0 -15
- package/dist/cjs/index-53637125.js +0 -1864
- package/dist/cjs/index-89682d55.js +0 -193
- package/dist/cjs/index-a2b50e51.js +0 -64
- package/dist/cjs/index.cjs.js +0 -6
- package/dist/cjs/input-template-9d262873.js +0 -86
- package/dist/cjs/is-load-decorator-20a4687b.js +0 -56
- package/dist/cjs/json-parse-decarator-c3596560.js +0 -40
- package/dist/cjs/label-template-b35d7e8e.js +0 -23
- package/dist/cjs/loader.cjs.js +0 -26
- package/dist/cjs/number-helper-0975436a.js +0 -20
- package/dist/cjs/old-bcm-popover.cjs.entry.js +0 -104
- package/dist/cjs/popover-placement-87901bb3.js +0 -98
- package/dist/cjs/property-decorators-b0cb1a50.js +0 -33
- package/dist/cjs/slot-template-546b0f5a.js +0 -15
- package/dist/cjs/stepper-states-0a54437d.js +0 -83
- package/dist/cjs/string-helper-df40a475.js +0 -134
- package/dist/cjs/tooltip-helper-6b5d41a4.js +0 -1449
- package/dist/cjs/types-3871235f.js +0 -32
- package/dist/cjs/types-6eb7e028.js +0 -32
- package/dist/cjs/types-cc4adee7.js +0 -19
- package/dist/cjs/utils-fc077139.js +0 -131
- package/dist/cjs/validators-f572960b.js +0 -33
- package/dist/collection/collection-manifest.json +0 -95
- package/dist/collection/components/atoms/avatar/avatar.css +0 -448
- package/dist/collection/components/atoms/avatar/avatar.js +0 -259
- package/dist/collection/components/atoms/badge/badge.css +0 -481
- package/dist/collection/components/atoms/badge/badge.js +0 -224
- package/dist/collection/components/atoms/box/box.js +0 -23
- package/dist/collection/components/atoms/button/button.css +0 -637
- package/dist/collection/components/atoms/button/button.js +0 -525
- package/dist/collection/components/atoms/button/types.js +0 -170
- package/dist/collection/components/atoms/chip/chip.css +0 -453
- package/dist/collection/components/atoms/chip/chip.js +0 -187
- package/dist/collection/components/atoms/divider/divider.css +0 -142
- package/dist/collection/components/atoms/divider/divider.js +0 -83
- package/dist/collection/components/atoms/icon/icon.css +0 -127
- package/dist/collection/components/atoms/icon/icon.js +0 -70
- package/dist/collection/components/atoms/label/label.css +0 -408
- package/dist/collection/components/atoms/label/label.js +0 -216
- package/dist/collection/components/atoms/link/link.css +0 -419
- package/dist/collection/components/atoms/link/link.js +0 -176
- package/dist/collection/components/atoms/states/button.states.js +0 -31
- package/dist/collection/components/atoms/tag/tag.js +0 -334
- package/dist/collection/components/atoms/tag/types.js +0 -30
- package/dist/collection/components/atoms/typography/typography.js +0 -23
- package/dist/collection/components/molecules/accordion/accordion.css +0 -127
- package/dist/collection/components/molecules/accordion/accordion.js +0 -129
- package/dist/collection/components/molecules/alert/alert.css +0 -191
- package/dist/collection/components/molecules/alert/alert.js +0 -298
- package/dist/collection/components/molecules/alert/types.js +0 -23
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.css +0 -201
- package/dist/collection/components/molecules/breadcrumb/breadcrumb.js +0 -155
- package/dist/collection/components/molecules/breadcrumb/types.js +0 -5
- package/dist/collection/components/molecules/button-group/button-group.css +0 -423
- package/dist/collection/components/molecules/button-group/button-group.js +0 -235
- package/dist/collection/components/molecules/card/card.css +0 -408
- package/dist/collection/components/molecules/card/card.js +0 -128
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -237
- package/dist/collection/components/molecules/checkbox/checkbox.css +0 -1280
- package/dist/collection/components/molecules/checkbox/checkbox.js +0 -688
- package/dist/collection/components/molecules/checkbox/group.css +0 -156
- package/dist/collection/components/molecules/checkbox/group.js +0 -779
- package/dist/collection/components/molecules/drawer/drawer.css +0 -502
- package/dist/collection/components/molecules/drawer/drawer.js +0 -272
- package/dist/collection/components/molecules/dropdown/dropdown.css +0 -419
- package/dist/collection/components/molecules/dropdown/dropdown.js +0 -839
- package/dist/collection/components/molecules/empty/empty.js +0 -44
- package/dist/collection/components/molecules/error-layout/error-layout.css +0 -396
- package/dist/collection/components/molecules/error-layout/error-layout.js +0 -177
- package/dist/collection/components/molecules/error-layout/types.js +0 -5
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -488
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +0 -322
- package/dist/collection/components/molecules/input/input.css +0 -1208
- package/dist/collection/components/molecules/input/input.js +0 -1170
- package/dist/collection/components/molecules/input/types.js +0 -17
- package/dist/collection/components/molecules/item/item.css +0 -446
- package/dist/collection/components/molecules/item/item.js +0 -151
- package/dist/collection/components/molecules/items/items.js +0 -84
- package/dist/collection/components/molecules/linked/linked.js +0 -179
- package/dist/collection/components/molecules/menu/menu.css +0 -718
- package/dist/collection/components/molecules/menu/menu.js +0 -618
- package/dist/collection/components/molecules/message/message.css +0 -165
- package/dist/collection/components/molecules/message/message.js +0 -222
- package/dist/collection/components/molecules/message/types.js +0 -14
- package/dist/collection/components/molecules/modal/modal.css +0 -526
- package/dist/collection/components/molecules/modal/modal.js +0 -379
- package/dist/collection/components/molecules/notification/notification.css +0 -183
- package/dist/collection/components/molecules/notification/notification.js +0 -244
- package/dist/collection/components/molecules/notification/types.js +0 -15
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +0 -563
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +0 -396
- package/dist/collection/components/molecules/popconfirm/popconfirm.css +0 -127
- package/dist/collection/components/molecules/popconfirm/popconfirm.js +0 -382
- package/dist/collection/components/molecules/popover/popover.js +0 -254
- package/dist/collection/components/molecules/progress/progress.css +0 -486
- package/dist/collection/components/molecules/progress/progress.js +0 -404
- package/dist/collection/components/molecules/progress/types.js +0 -28
- package/dist/collection/components/molecules/radio/group.css +0 -798
- package/dist/collection/components/molecules/radio/group.js +0 -652
- package/dist/collection/components/molecules/radio/radio.css +0 -1280
- package/dist/collection/components/molecules/radio/radio.js +0 -291
- package/dist/collection/components/molecules/radio/types.js +0 -30
- package/dist/collection/components/molecules/range/range.css +0 -570
- package/dist/collection/components/molecules/range/range.js +0 -472
- package/dist/collection/components/molecules/result/result.css +0 -164
- package/dist/collection/components/molecules/result/result.js +0 -143
- package/dist/collection/components/molecules/result/types.js +0 -22
- package/dist/collection/components/molecules/search/search.css +0 -1208
- package/dist/collection/components/molecules/search/search.js +0 -406
- package/dist/collection/components/molecules/skeleton/skeleton.js +0 -94
- package/dist/collection/components/molecules/states/alert.states.js +0 -25
- package/dist/collection/components/molecules/states/checkbox-group.states.js +0 -199
- package/dist/collection/components/molecules/states/radio-group.states.js +0 -107
- package/dist/collection/components/molecules/states/search.states.js +0 -137
- package/dist/collection/components/molecules/states/stepper-states.js +0 -79
- package/dist/collection/components/molecules/stepper/step.js +0 -346
- package/dist/collection/components/molecules/stepper/stepper.css +0 -617
- package/dist/collection/components/molecules/stepper/stepper.js +0 -484
- package/dist/collection/components/molecules/switch/switch.css +0 -1272
- package/dist/collection/components/molecules/switch/switch.js +0 -716
- package/dist/collection/components/molecules/tab-group/tab-group.js +0 -280
- package/dist/collection/components/molecules/textarea/textarea.css +0 -1208
- package/dist/collection/components/molecules/textarea/textarea.js +0 -731
- package/dist/collection/components/molecules/textarea/types.js +0 -13
- package/dist/collection/components/molecules/timeline/timeline-item.css +0 -254
- package/dist/collection/components/molecules/timeline/timeline-item.js +0 -159
- package/dist/collection/components/molecules/timeline/timeline.css +0 -205
- package/dist/collection/components/molecules/timeline/timeline.js +0 -125
- package/dist/collection/components/molecules/tooltip/tooltip.js +0 -232
- package/dist/collection/components/organism/autocomplete/autocomplete.css +0 -168
- package/dist/collection/components/organism/autocomplete/autocomplete.js +0 -399
- package/dist/collection/components/organism/colorpicker/colorpicker.css +0 -313
- package/dist/collection/components/organism/colorpicker/colorpicker.js +0 -774
- package/dist/collection/components/organism/colorpicker/static/chess.png +0 -0
- package/dist/collection/components/organism/colorpicker/static/color.svg +0 -14
- package/dist/collection/components/organism/colorpicker/static/colors.svg +0 -16
- package/dist/collection/components/organism/date-picker/date-picker.css +0 -141
- package/dist/collection/components/organism/date-picker/date-picker.js +0 -780
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +0 -1429
- package/dist/collection/components/organism/datetime-picker/datetime-picker.js +0 -2166
- package/dist/collection/components/organism/datetime-picker/types.js +0 -39
- package/dist/collection/components/organism/form/form-group.css +0 -131
- package/dist/collection/components/organism/form/form-group.js +0 -131
- package/dist/collection/components/organism/form/form.css +0 -132
- package/dist/collection/components/organism/form/form.js +0 -680
- package/dist/collection/components/organism/form-2/bcm-form-components.js +0 -26
- package/dist/collection/components/organism/form-2/form-2.css +0 -127
- package/dist/collection/components/organism/form-2/form-2.js +0 -328
- package/dist/collection/components/organism/list/list-key-control.js +0 -125
- package/dist/collection/components/organism/list/list-tag-control.js +0 -172
- package/dist/collection/components/organism/list/list.css +0 -2047
- package/dist/collection/components/organism/list/list.js +0 -1860
- package/dist/collection/components/organism/states/bcm-list2.states.js +0 -532
- package/dist/collection/components/organism/time-picker/time-picker.css +0 -141
- package/dist/collection/components/organism/time-picker/time-picker.js +0 -627
- package/dist/collection/components/other/attendance/attendance.css +0 -433
- package/dist/collection/components/other/attendance/attendance.js +0 -87
- package/dist/collection/components/other/data-table/table.css +0 -130
- package/dist/collection/components/other/data-table/table.js +0 -92
- package/dist/collection/components/other/default/default.css +0 -127
- package/dist/collection/components/other/default/default.js +0 -54
- package/dist/collection/components/other_deprecated/collapse/collapse.css +0 -177
- package/dist/collection/components/other_deprecated/collapse/collapse.js +0 -163
- package/dist/collection/components/other_deprecated/collapse/group.js +0 -128
- package/dist/collection/components/other_deprecated/listbox/listbox-group.css +0 -139
- package/dist/collection/components/other_deprecated/listbox/listbox-group.js +0 -93
- package/dist/collection/components/other_deprecated/listbox/listbox-item.css +0 -269
- package/dist/collection/components/other_deprecated/listbox/listbox-item.js +0 -641
- package/dist/collection/components/other_deprecated/listbox/listbox.css +0 -365
- package/dist/collection/components/other_deprecated/listbox/listbox.js +0 -1999
- package/dist/collection/components/other_deprecated/listbox/types.js +0 -11
- package/dist/collection/components/other_deprecated/old-input/old-input.css +0 -1360
- package/dist/collection/components/other_deprecated/old-input/old-input.js +0 -1154
- package/dist/collection/components/other_deprecated/old-input/types.js +0 -17
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +0 -582
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.js +0 -411
- package/dist/collection/components/other_deprecated/old-popover/old-popover.css +0 -127
- package/dist/collection/components/other_deprecated/old-popover/old-popover.js +0 -296
- package/dist/collection/components/other_deprecated/old-search/old-search.css +0 -131
- package/dist/collection/components/other_deprecated/old-search/old-search.js +0 -496
- package/dist/collection/components/other_deprecated/old-tag/old-tag.css +0 -305
- package/dist/collection/components/other_deprecated/old-tag/old-tag.js +0 -326
- package/dist/collection/components/other_deprecated/old-tag/types.js +0 -30
- package/dist/collection/components/other_deprecated/select/group.css +0 -144
- package/dist/collection/components/other_deprecated/select/group.js +0 -88
- package/dist/collection/components/other_deprecated/select/option.css +0 -164
- package/dist/collection/components/other_deprecated/select/option.js +0 -142
- package/dist/collection/components/other_deprecated/select/select-box.css +0 -143
- package/dist/collection/components/other_deprecated/select/select-box.js +0 -104
- package/dist/collection/components/other_deprecated/select/select.css +0 -364
- package/dist/collection/components/other_deprecated/select/select.js +0 -2229
- package/dist/collection/components/other_deprecated/tabs/tab-pane.css +0 -142
- package/dist/collection/components/other_deprecated/tabs/tab-pane.js +0 -168
- package/dist/collection/components/other_deprecated/tabs/tab.css +0 -587
- package/dist/collection/components/other_deprecated/tabs/tab.js +0 -303
- package/dist/collection/components/other_deprecated/tabs/tabs-content.css +0 -136
- package/dist/collection/components/other_deprecated/tabs/tabs-content.js +0 -147
- package/dist/collection/components/other_deprecated/tabs/tabs.css +0 -212
- package/dist/collection/components/other_deprecated/tabs/tabs.js +0 -806
- package/dist/collection/components/other_deprecated/tabs/types.js +0 -30
- package/dist/collection/components/other_deprecated/text/text.css +0 -429
- package/dist/collection/components/other_deprecated/text/text.js +0 -159
- package/dist/collection/components/other_deprecated/treeview/treeview-group.css +0 -0
- package/dist/collection/components/other_deprecated/treeview/treeview-group.js +0 -18
- package/dist/collection/components/other_deprecated/treeview/treeview-item.css +0 -318
- package/dist/collection/components/other_deprecated/treeview/treeview-item.js +0 -977
- package/dist/collection/components/other_deprecated/treeview/treeview.css +0 -190
- package/dist/collection/components/other_deprecated/treeview/treeview.js +0 -1699
- package/dist/collection/components/other_deprecated/treeview/types.js +0 -11
- package/dist/collection/decorators/id-decorator.js +0 -18
- package/dist/collection/decorators/index.js +0 -8
- package/dist/collection/decorators/is-load-decorator.js +0 -51
- package/dist/collection/decorators/json-parse-decarator.js +0 -35
- package/dist/collection/decorators/property-decorators.js +0 -28
- package/dist/collection/global/components/_checkbox.css +0 -627
- package/dist/collection/global/config.js +0 -45
- package/dist/collection/global/global.js +0 -43
- package/dist/collection/global/variables/colors.js +0 -220
- package/dist/collection/helper/color-helper.js +0 -81
- package/dist/collection/helper/content-helper.js +0 -63
- package/dist/collection/helper/datetime-helper.js +0 -7
- package/dist/collection/helper/generate.js +0 -163
- package/dist/collection/helper/index.js +0 -13
- package/dist/collection/helper/number-helper.js +0 -15
- package/dist/collection/helper/popover-helper.js +0 -104
- package/dist/collection/helper/string-helper.js +0 -65
- package/dist/collection/helper/tooltip-helper.js +0 -93
- package/dist/collection/helper/validators.js +0 -28
- package/dist/collection/index.js +0 -5
- package/dist/collection/models/abstract-classes/abstract-key-control.js +0 -97
- package/dist/collection/models/bcm-types.js +0 -5
- package/dist/collection/models/bcm.js +0 -466
- package/dist/collection/models/index.js +0 -6
- package/dist/collection/models/states/atoms/bcm-atoms-state.js +0 -5
- package/dist/collection/models/states/molecules/bcm-molecules-state.js +0 -5
- package/dist/collection/models/states/organisms/bcm-organisms-state.js +0 -5
- package/dist/collection/templates/button-template.js +0 -22
- package/dist/collection/templates/caption-template.js +0 -29
- package/dist/collection/templates/checkbox-group-template.js +0 -10
- package/dist/collection/templates/checkbox-template.js +0 -31
- package/dist/collection/templates/icon-template.js +0 -24
- package/dist/collection/templates/index.js +0 -17
- package/dist/collection/templates/info-footer-template.js +0 -16
- package/dist/collection/templates/input-template.js +0 -81
- package/dist/collection/templates/label-template.js +0 -18
- package/dist/collection/templates/list-item-template.js +0 -58
- package/dist/collection/templates/list-template.js +0 -24
- package/dist/collection/templates/slot-template.js +0 -10
- package/dist/collection/templates/step-template.js +0 -26
- package/dist/collection/templates/tag-template.js +0 -45
- package/dist/collection/types/index.js +0 -5
- package/dist/collection/utils/element-dragger.js +0 -274
- package/dist/collection/utils/floating-ui.js +0 -62
- package/dist/collection/utils/index.js +0 -9
- package/dist/collection/utils/popover-placement.js +0 -96
- package/dist/collection/utils/utils.js +0 -223
- package/dist/collection/utils/validation.js +0 -47
- package/dist/esm/_commonjsHelpers-3016b722.js +0 -25
- package/dist/esm/bcm-accordion.entry.js +0 -81
- package/dist/esm/bcm-alert.entry.js +0 -108
- package/dist/esm/bcm-attendance.entry.js +0 -46
- package/dist/esm/bcm-autocomplete.entry.js +0 -151
- package/dist/esm/bcm-avatar_2.entry.js +0 -151
- package/dist/esm/bcm-b8d8a236.js +0 -446
- package/dist/esm/bcm-box.entry.js +0 -31
- package/dist/esm/bcm-breadcrumb.entry.js +0 -63
- package/dist/esm/bcm-button-group.entry.js +0 -98
- package/dist/esm/bcm-button_13.entry.js +0 -1965
- package/dist/esm/bcm-card.entry.js +0 -72
- package/dist/esm/bcm-checkbox-group.entry.js +0 -405
- package/dist/esm/bcm-checkbox-lite_9.entry.js +0 -2558
- package/dist/esm/bcm-checkbox_2.entry.js +0 -198
- package/dist/esm/bcm-chip.entry.js +0 -66
- package/dist/esm/bcm-collapse-group.entry.js +0 -53
- package/dist/esm/bcm-collapse.entry.js +0 -54
- package/dist/esm/bcm-colorpicker.entry.js +0 -429
- package/dist/esm/bcm-date-picker.entry.js +0 -167
- package/dist/esm/bcm-datetime-picker.entry.js +0 -1428
- package/dist/esm/bcm-default.entry.js +0 -36
- package/dist/esm/bcm-drawer.entry.js +0 -107
- package/dist/esm/bcm-error-layout.entry.js +0 -74
- package/dist/esm/bcm-expansion-panel.entry.js +0 -123
- package/dist/esm/bcm-form-2.entry.js +0 -201
- package/dist/esm/bcm-form-group.entry.js +0 -41
- package/dist/esm/bcm-input.entry.js +0 -320
- package/dist/esm/bcm-link.entry.js +0 -58
- package/dist/esm/bcm-linked.entry.js +0 -79
- package/dist/esm/bcm-list.entry.js +0 -1757
- package/dist/esm/bcm-message.entry.js +0 -95
- package/dist/esm/bcm-modal.entry.js +0 -133
- package/dist/esm/bcm-notification.entry.js +0 -99
- package/dist/esm/bcm-old-input.entry.js +0 -394
- package/dist/esm/bcm-old-tag_2.entry.js +0 -152
- package/dist/esm/bcm-popconfirm-box.entry.js +0 -118
- package/dist/esm/bcm-popconfirm.entry.js +0 -108
- package/dist/esm/bcm-progress.entry.js +0 -170
- package/dist/esm/bcm-radio-group.entry.js +0 -263
- package/dist/esm/bcm-radio.entry.js +0 -100
- package/dist/esm/bcm-range.entry.js +0 -185
- package/dist/esm/bcm-result.entry.js +0 -75
- package/dist/esm/bcm-search.entry.js +0 -252
- package/dist/esm/bcm-select-group.entry.js +0 -27
- package/dist/esm/bcm-select-option.entry.js +0 -33
- package/dist/esm/bcm-select.entry.js +0 -1177
- package/dist/esm/bcm-skeleton.entry.js +0 -52
- package/dist/esm/bcm-step.entry.js +0 -89
- package/dist/esm/bcm-stepper.entry.js +0 -207
- package/dist/esm/bcm-tab-group.entry.js +0 -168
- package/dist/esm/bcm-tab-pane.entry.js +0 -66
- package/dist/esm/bcm-tab.entry.js +0 -85
- package/dist/esm/bcm-table.entry.js +0 -74
- package/dist/esm/bcm-tabs-content.entry.js +0 -58
- package/dist/esm/bcm-tabs.entry.js +0 -386
- package/dist/esm/bcm-tag.entry.js +0 -97
- package/dist/esm/bcm-textarea.entry.js +0 -146
- package/dist/esm/bcm-time-picker.entry.js +0 -135
- package/dist/esm/bcm-timeline-item.entry.js +0 -51
- package/dist/esm/bcm-timeline.entry.js +0 -69
- package/dist/esm/bcm-treeview-group.entry.js +0 -19
- package/dist/esm/bromcom-ui.js +0 -22
- package/dist/esm/caption-template-3dc68282.js +0 -32
- package/dist/esm/color-helper-7e202fd8.js +0 -488
- package/dist/esm/colors-1d7854ea.js +0 -222
- package/dist/esm/datetime-helper-df25808a.js +0 -9
- package/dist/esm/element-dragger-89bb52fd.js +0 -277
- package/dist/esm/generate-fb5ddb87.js +0 -195
- package/dist/esm/global-4fad925b.js +0 -13
- package/dist/esm/index-36ae55c5.js +0 -191
- package/dist/esm/index-ba2edd32.js +0 -62
- package/dist/esm/index-bd33e7be.js +0 -1833
- package/dist/esm/index.js +0 -4
- package/dist/esm/input-template-0c47abf5.js +0 -84
- package/dist/esm/is-load-decorator-73e33bee.js +0 -54
- package/dist/esm/json-parse-decarator-7b411846.js +0 -38
- package/dist/esm/label-template-c83a04a3.js +0 -21
- package/dist/esm/loader.js +0 -22
- package/dist/esm/number-helper-42be449e.js +0 -18
- package/dist/esm/old-bcm-popover.entry.js +0 -100
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/popover-placement-9864294b.js +0 -95
- package/dist/esm/property-decorators-61be220d.js +0 -31
- package/dist/esm/slot-template-24f1e66e.js +0 -13
- package/dist/esm/stepper-states-b8e9888d.js +0 -81
- package/dist/esm/string-helper-74a1648f.js +0 -132
- package/dist/esm/tooltip-helper-427dd3f5.js +0 -1446
- package/dist/esm/types-6f06fa1a.js +0 -19
- package/dist/esm/types-b211a5eb.js +0 -32
- package/dist/esm/types-bfc3bba1.js +0 -32
- package/dist/esm/utils-57652744.js +0 -123
- package/dist/esm/validators-6f23b54f.js +0 -31
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/atoms/avatar/avatar.d.ts +0 -23
- package/dist/types/components/atoms/badge/badge.d.ts +0 -17
- package/dist/types/components/atoms/box/box.d.ts +0 -5
- package/dist/types/components/atoms/button/button.d.ts +0 -33
- package/dist/types/components/atoms/button/types.d.ts +0 -166
- package/dist/types/components/atoms/chip/chip.d.ts +0 -24
- package/dist/types/components/atoms/divider/divider.d.ts +0 -7
- package/dist/types/components/atoms/icon/icon.d.ts +0 -6
- package/dist/types/components/atoms/label/label.d.ts +0 -16
- package/dist/types/components/atoms/link/link.d.ts +0 -13
- package/dist/types/components/atoms/states/button.states.d.ts +0 -7
- package/dist/types/components/atoms/tag/tag.d.ts +0 -24
- package/dist/types/components/atoms/tag/types.d.ts +0 -29
- package/dist/types/components/atoms/typography/typography.d.ts +0 -5
- package/dist/types/components/molecules/accordion/accordion.d.ts +0 -11
- package/dist/types/components/molecules/alert/alert.d.ts +0 -21
- package/dist/types/components/molecules/alert/types.d.ts +0 -25
- package/dist/types/components/molecules/breadcrumb/breadcrumb.d.ts +0 -14
- package/dist/types/components/molecules/breadcrumb/types.d.ts +0 -10
- package/dist/types/components/molecules/button-group/button-group.d.ts +0 -21
- package/dist/types/components/molecules/card/card.d.ts +0 -11
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -56
- package/dist/types/components/molecules/checkbox/group.d.ts +0 -56
- package/dist/types/components/molecules/drawer/drawer.d.ts +0 -21
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +0 -54
- package/dist/types/components/molecules/empty/empty.d.ts +0 -5
- package/dist/types/components/molecules/error-layout/error-layout.d.ts +0 -25
- package/dist/types/components/molecules/error-layout/types.d.ts +0 -4
- package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +0 -31
- package/dist/types/components/molecules/input/input.d.ts +0 -82
- package/dist/types/components/molecules/input/types.d.ts +0 -13
- package/dist/types/components/molecules/item/item.d.ts +0 -13
- package/dist/types/components/molecules/items/items.d.ts +0 -10
- package/dist/types/components/molecules/linked/linked.d.ts +0 -14
- package/dist/types/components/molecules/menu/menu.d.ts +0 -41
- package/dist/types/components/molecules/message/message.d.ts +0 -32
- package/dist/types/components/molecules/message/types.d.ts +0 -13
- package/dist/types/components/molecules/modal/modal.d.ts +0 -26
- package/dist/types/components/molecules/notification/notification.d.ts +0 -42
- package/dist/types/components/molecules/notification/types.d.ts +0 -14
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +0 -29
- package/dist/types/components/molecules/popconfirm/popconfirm.d.ts +0 -28
- package/dist/types/components/molecules/popover/popover.d.ts +0 -20
- package/dist/types/components/molecules/progress/progress.d.ts +0 -25
- package/dist/types/components/molecules/progress/types.d.ts +0 -14
- package/dist/types/components/molecules/radio/group.d.ts +0 -54
- package/dist/types/components/molecules/radio/radio.d.ts +0 -21
- package/dist/types/components/molecules/radio/types.d.ts +0 -29
- package/dist/types/components/molecules/range/range.d.ts +0 -36
- package/dist/types/components/molecules/result/result.d.ts +0 -13
- package/dist/types/components/molecules/result/types.d.ts +0 -19
- package/dist/types/components/molecules/search/search.d.ts +0 -35
- package/dist/types/components/molecules/skeleton/skeleton.d.ts +0 -8
- package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
- package/dist/types/components/molecules/states/checkbox-group.states.d.ts +0 -53
- package/dist/types/components/molecules/states/radio-group.states.d.ts +0 -48
- package/dist/types/components/molecules/states/search.states.d.ts +0 -14
- package/dist/types/components/molecules/states/stepper-states.d.ts +0 -13
- package/dist/types/components/molecules/stepper/step.d.ts +0 -25
- package/dist/types/components/molecules/stepper/stepper.d.ts +0 -34
- package/dist/types/components/molecules/switch/switch.d.ts +0 -46
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +0 -18
- package/dist/types/components/molecules/textarea/textarea.d.ts +0 -53
- package/dist/types/components/molecules/textarea/types.d.ts +0 -9
- package/dist/types/components/molecules/timeline/timeline-item.d.ts +0 -16
- package/dist/types/components/molecules/timeline/timeline.d.ts +0 -25
- package/dist/types/components/molecules/tooltip/tooltip.d.ts +0 -19
- package/dist/types/components/organism/autocomplete/autocomplete.d.ts +0 -31
- package/dist/types/components/organism/colorpicker/colorpicker.d.ts +0 -176
- package/dist/types/components/organism/date-picker/date-picker.d.ts +0 -77
- package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +0 -438
- package/dist/types/components/organism/datetime-picker/types.d.ts +0 -54
- package/dist/types/components/organism/form/form-group.d.ts +0 -10
- package/dist/types/components/organism/form/form.d.ts +0 -34
- package/dist/types/components/organism/form-2/bcm-form-components.d.ts +0 -2
- package/dist/types/components/organism/form-2/form-2.d.ts +0 -25
- package/dist/types/components/organism/list/list-key-control.d.ts +0 -18
- package/dist/types/components/organism/list/list-tag-control.d.ts +0 -18
- package/dist/types/components/organism/list/list.d.ts +0 -138
- package/dist/types/components/organism/states/bcm-list2.states.d.ts +0 -28
- package/dist/types/components/organism/time-picker/time-picker.d.ts +0 -69
- package/dist/types/components/other/attendance/attendance.d.ts +0 -7
- package/dist/types/components/other/data-table/table.d.ts +0 -8
- package/dist/types/components/other/default/default.d.ts +0 -6
- package/dist/types/components/other_deprecated/collapse/collapse.d.ts +0 -12
- package/dist/types/components/other_deprecated/collapse/group.d.ts +0 -15
- package/dist/types/components/other_deprecated/listbox/listbox-group.d.ts +0 -7
- package/dist/types/components/other_deprecated/listbox/listbox-item.d.ts +0 -58
- package/dist/types/components/other_deprecated/listbox/listbox.d.ts +0 -152
- package/dist/types/components/other_deprecated/listbox/types.d.ts +0 -11
- package/dist/types/components/other_deprecated/old-input/old-input.d.ts +0 -80
- package/dist/types/components/other_deprecated/old-input/types.d.ts +0 -13
- package/dist/types/components/other_deprecated/old-popover/old-popover-box.d.ts +0 -25
- package/dist/types/components/other_deprecated/old-popover/old-popover.d.ts +0 -22
- package/dist/types/components/other_deprecated/old-search/old-search.d.ts +0 -32
- package/dist/types/components/other_deprecated/old-tag/old-tag.d.ts +0 -27
- package/dist/types/components/other_deprecated/old-tag/types.d.ts +0 -29
- package/dist/types/components/other_deprecated/select/group.d.ts +0 -6
- package/dist/types/components/other_deprecated/select/option.d.ts +0 -10
- package/dist/types/components/other_deprecated/select/select-box.d.ts +0 -15
- package/dist/types/components/other_deprecated/select/select.d.ts +0 -131
- package/dist/types/components/other_deprecated/tabs/tab-pane.d.ts +0 -19
- package/dist/types/components/other_deprecated/tabs/tab.d.ts +0 -36
- package/dist/types/components/other_deprecated/tabs/tabs-content.d.ts +0 -18
- package/dist/types/components/other_deprecated/tabs/tabs.d.ts +0 -112
- package/dist/types/components/other_deprecated/tabs/types.d.ts +0 -39
- package/dist/types/components/other_deprecated/text/text.d.ts +0 -11
- package/dist/types/components/other_deprecated/treeview/treeview-group.d.ts +0 -3
- package/dist/types/components/other_deprecated/treeview/treeview-item.d.ts +0 -119
- package/dist/types/components/other_deprecated/treeview/treeview.d.ts +0 -181
- package/dist/types/components/other_deprecated/treeview/types.d.ts +0 -11
- package/dist/types/components.d.ts +0 -3517
- package/dist/types/decorators/id-decorator.d.ts +0 -4
- package/dist/types/decorators/index.d.ts +0 -4
- package/dist/types/decorators/is-load-decorator.d.ts +0 -7
- package/dist/types/decorators/json-parse-decarator.d.ts +0 -4
- package/dist/types/decorators/property-decorators.d.ts +0 -4
- package/dist/types/global/variables/colors.d.ts +0 -217
- package/dist/types/helper/color-helper.d.ts +0 -16
- package/dist/types/helper/content-helper.d.ts +0 -18
- package/dist/types/helper/datetime-helper.d.ts +0 -3
- package/dist/types/helper/generate.d.ts +0 -21
- package/dist/types/helper/index.d.ts +0 -9
- package/dist/types/helper/number-helper.d.ts +0 -10
- package/dist/types/helper/popover-helper.d.ts +0 -31
- package/dist/types/helper/string-helper.d.ts +0 -27
- package/dist/types/helper/tooltip-helper.d.ts +0 -25
- package/dist/types/helper/validators.d.ts +0 -10
- package/dist/types/index.d.ts +0 -1
- package/dist/types/models/abstract-classes/abstract-key-control.d.ts +0 -31
- package/dist/types/models/bcm-types.d.ts +0 -21
- package/dist/types/models/bcm.d.ts +0 -456
- package/dist/types/models/index.d.ts +0 -2
- package/dist/types/models/states/atoms/bcm-atoms-state.d.ts +0 -34
- package/dist/types/models/states/molecules/bcm-molecules-state.d.ts +0 -90
- package/dist/types/models/states/organisms/bcm-organisms-state.d.ts +0 -78
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/templates/button-template.d.ts +0 -18
- package/dist/types/templates/caption-template.d.ts +0 -14
- package/dist/types/templates/checkbox-group-template.d.ts +0 -10
- package/dist/types/templates/checkbox-template.d.ts +0 -13
- package/dist/types/templates/icon-template.d.ts +0 -7
- package/dist/types/templates/index.d.ts +0 -13
- package/dist/types/templates/info-footer-template.d.ts +0 -10
- package/dist/types/templates/input-template.d.ts +0 -34
- package/dist/types/templates/label-template.d.ts +0 -12
- package/dist/types/templates/list-item-template.d.ts +0 -13
- package/dist/types/templates/list-template.d.ts +0 -29
- package/dist/types/templates/slot-template.d.ts +0 -8
- package/dist/types/templates/step-template.d.ts +0 -17
- package/dist/types/templates/tag-template.d.ts +0 -21
- package/dist/types/types/index.d.ts +0 -12
- package/dist/types/utils/element-dragger.d.ts +0 -146
- package/dist/types/utils/floating-ui.d.ts +0 -6
- package/dist/types/utils/index.d.ts +0 -5
- package/dist/types/utils/popover-placement.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +0 -55
- package/dist/types/utils/validation.d.ts +0 -19
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
export const ColorPalette = {
|
|
6
|
-
'black': '#000000',
|
|
7
|
-
'white': '#ffffff',
|
|
8
|
-
'prime-blue': {
|
|
9
|
-
1: '#F4FBFE',
|
|
10
|
-
2: '#D4E9F6',
|
|
11
|
-
3: '#B0D3EC',
|
|
12
|
-
4: '#8ABDE2',
|
|
13
|
-
5: '#65A8D9',
|
|
14
|
-
6: '#4293CF',
|
|
15
|
-
7: '#3679AB',
|
|
16
|
-
8: '#285C82',
|
|
17
|
-
9: '#194E75',
|
|
18
|
-
10: '#0E2739'
|
|
19
|
-
},
|
|
20
|
-
'grey': {
|
|
21
|
-
1: '#FFFFFF',
|
|
22
|
-
2: '#FAFAFA',
|
|
23
|
-
3: '#F5F5F5',
|
|
24
|
-
4: '#E8E8E8',
|
|
25
|
-
5: '#D9D9D9',
|
|
26
|
-
6: '#BFBFBF',
|
|
27
|
-
7: '#8C8C8C',
|
|
28
|
-
8: '#595959',
|
|
29
|
-
9: '#262626',
|
|
30
|
-
10: '#000000'
|
|
31
|
-
},
|
|
32
|
-
'blue': {
|
|
33
|
-
1: '#E6F7FF',
|
|
34
|
-
2: '#BAE7FF',
|
|
35
|
-
3: '#91D5FF',
|
|
36
|
-
4: '#69C0FF',
|
|
37
|
-
5: '#40A9FF',
|
|
38
|
-
6: '#1890FF',
|
|
39
|
-
7: '#096DD9',
|
|
40
|
-
8: '#0050B3',
|
|
41
|
-
9: '#003A8C',
|
|
42
|
-
10: '#002766'
|
|
43
|
-
},
|
|
44
|
-
'warmyellow': {
|
|
45
|
-
1: '#FFFBE6',
|
|
46
|
-
2: '#FFF1B8',
|
|
47
|
-
3: '#FFE58F',
|
|
48
|
-
4: '#FFD666',
|
|
49
|
-
5: '#FFC53D',
|
|
50
|
-
6: '#FAAD14',
|
|
51
|
-
7: '#D48806',
|
|
52
|
-
8: '#AD6800',
|
|
53
|
-
9: '#874D00',
|
|
54
|
-
10: '#613400'
|
|
55
|
-
},
|
|
56
|
-
'yellow': {
|
|
57
|
-
1: '#FEFFE6',
|
|
58
|
-
2: '#FFFFB8',
|
|
59
|
-
3: '#FFFB8F',
|
|
60
|
-
4: '#FFF566',
|
|
61
|
-
5: '#FFEC3D',
|
|
62
|
-
6: '#FADB14',
|
|
63
|
-
7: '#D4B106',
|
|
64
|
-
8: '#AD8B00',
|
|
65
|
-
9: '#876800',
|
|
66
|
-
10: '#614700'
|
|
67
|
-
},
|
|
68
|
-
'limegreen': {
|
|
69
|
-
1: '#FCFFE6',
|
|
70
|
-
2: '#F4FFB8',
|
|
71
|
-
3: '#EAFF8F',
|
|
72
|
-
4: '#D3F261',
|
|
73
|
-
5: '#BAE637',
|
|
74
|
-
6: '#A0D911',
|
|
75
|
-
7: '#7CB305',
|
|
76
|
-
8: '#5B8C00',
|
|
77
|
-
9: '#3F66',
|
|
78
|
-
10: '#254000'
|
|
79
|
-
},
|
|
80
|
-
'red': {
|
|
81
|
-
1: '#FFF1F0',
|
|
82
|
-
2: '#FFCCC7',
|
|
83
|
-
3: '#FFA39E',
|
|
84
|
-
4: '#FF7875',
|
|
85
|
-
5: '#FF4D4F',
|
|
86
|
-
6: '#F5222D',
|
|
87
|
-
7: '#CF1322',
|
|
88
|
-
8: '#A8071A',
|
|
89
|
-
9: '#820014',
|
|
90
|
-
10: '#5C0011'
|
|
91
|
-
},
|
|
92
|
-
'darkorange': {
|
|
93
|
-
1: '#FFF2E8',
|
|
94
|
-
2: '#FFD8BF',
|
|
95
|
-
3: '#FFBB96',
|
|
96
|
-
4: '#FF9C6E',
|
|
97
|
-
5: '#FF7A45',
|
|
98
|
-
6: '#FA541C',
|
|
99
|
-
7: '#D4380D',
|
|
100
|
-
8: '#AD2102',
|
|
101
|
-
9: '#871400',
|
|
102
|
-
10: '#610B00'
|
|
103
|
-
},
|
|
104
|
-
'orange': {
|
|
105
|
-
1: '#FFF7E6',
|
|
106
|
-
2: '#FFE7BA',
|
|
107
|
-
3: '#FFD591',
|
|
108
|
-
4: '#FFC096',
|
|
109
|
-
5: '#FFA940',
|
|
110
|
-
6: '#FA8C16',
|
|
111
|
-
7: '#D46B08',
|
|
112
|
-
8: '#AD4E00',
|
|
113
|
-
9: '#873800',
|
|
114
|
-
10: '#612500'
|
|
115
|
-
},
|
|
116
|
-
'green': {
|
|
117
|
-
1: '#F6FFED',
|
|
118
|
-
2: '#D9F7BE',
|
|
119
|
-
3: '#B7EB8F',
|
|
120
|
-
4: '#95DE64',
|
|
121
|
-
5: '#73D13D',
|
|
122
|
-
6: '#52C41A',
|
|
123
|
-
7: '#389E0D',
|
|
124
|
-
8: '#237804',
|
|
125
|
-
9: '#135200',
|
|
126
|
-
10: '#092B00'
|
|
127
|
-
},
|
|
128
|
-
'turquosie': {
|
|
129
|
-
1: '#E6FFFB',
|
|
130
|
-
2: '#B5F5EC',
|
|
131
|
-
3: '#87E8DE',
|
|
132
|
-
4: '#5CDBD3',
|
|
133
|
-
5: '#36CFC9',
|
|
134
|
-
6: '#13C2C2',
|
|
135
|
-
7: '#08979C',
|
|
136
|
-
8: '#006D75',
|
|
137
|
-
9: '#00474F',
|
|
138
|
-
10: '#002329'
|
|
139
|
-
},
|
|
140
|
-
'cobaltblue': {
|
|
141
|
-
1: '#F0F5FF',
|
|
142
|
-
2: '#D6E4FF',
|
|
143
|
-
3: '#ADC6FF',
|
|
144
|
-
4: '#85A5FF',
|
|
145
|
-
5: '#597EF7',
|
|
146
|
-
6: '#2F54EB',
|
|
147
|
-
7: '#1D39C4',
|
|
148
|
-
8: '#10239E',
|
|
149
|
-
9: '#061178',
|
|
150
|
-
10: '#030852'
|
|
151
|
-
},
|
|
152
|
-
'magenta': {
|
|
153
|
-
1: '#FFF0F6',
|
|
154
|
-
2: '#FFD6E7',
|
|
155
|
-
3: '#FFADD2',
|
|
156
|
-
4: '#FF85C0',
|
|
157
|
-
5: '#F759AB',
|
|
158
|
-
6: '#EB2F96',
|
|
159
|
-
7: '#C41D7F',
|
|
160
|
-
8: '#9E1068',
|
|
161
|
-
9: '#780650',
|
|
162
|
-
10: '#520339'
|
|
163
|
-
},
|
|
164
|
-
'purple': {
|
|
165
|
-
1: '#F9F0FF',
|
|
166
|
-
2: '#EFDBFF',
|
|
167
|
-
3: '#D3ADF7',
|
|
168
|
-
4: '#B37FEB',
|
|
169
|
-
5: '#9254DE',
|
|
170
|
-
6: '#722ED1',
|
|
171
|
-
7: '#531DAB',
|
|
172
|
-
8: '#391085',
|
|
173
|
-
9: '#22075E',
|
|
174
|
-
10: '#120338'
|
|
175
|
-
},
|
|
176
|
-
'bc-red': {
|
|
177
|
-
1: '#FCF5F5',
|
|
178
|
-
2: '#F3C4BF',
|
|
179
|
-
3: '#EB998F',
|
|
180
|
-
4: '#E46E60',
|
|
181
|
-
5: '#CC4C41',
|
|
182
|
-
6: '#AA3527',
|
|
183
|
-
7: '#8D2D20',
|
|
184
|
-
8: '#6F241A',
|
|
185
|
-
9: '#4A1912'
|
|
186
|
-
},
|
|
187
|
-
'bc-orange': {
|
|
188
|
-
1: '#FEF9F4',
|
|
189
|
-
2: '#F9DDC0',
|
|
190
|
-
3: '#F7C494',
|
|
191
|
-
4: '#F4AD69',
|
|
192
|
-
5: '#F1963F',
|
|
193
|
-
6: '#D38236',
|
|
194
|
-
7: '#B26C2C',
|
|
195
|
-
8: '#905622',
|
|
196
|
-
9: '#6B3E17'
|
|
197
|
-
},
|
|
198
|
-
'bc-green': {
|
|
199
|
-
1: '#F8FCF6',
|
|
200
|
-
2: '#DBE8CA',
|
|
201
|
-
3: '#C0D6A2',
|
|
202
|
-
4: '#A6C57B',
|
|
203
|
-
5: '#8BB453',
|
|
204
|
-
6: '#7C9F4B',
|
|
205
|
-
7: '#6A8740',
|
|
206
|
-
8: '#586E36',
|
|
207
|
-
9: '#45532B'
|
|
208
|
-
},
|
|
209
|
-
'bc-blue': {
|
|
210
|
-
1: '#F4FBFE',
|
|
211
|
-
2: '#C5DEF0',
|
|
212
|
-
3: '#99C4E5',
|
|
213
|
-
4: '#6DACDA',
|
|
214
|
-
5: '#4293CF',
|
|
215
|
-
6: '#3A7FB3',
|
|
216
|
-
7: '#316892',
|
|
217
|
-
8: '#275071',
|
|
218
|
-
9: '#1D374F'
|
|
219
|
-
}
|
|
220
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { ColorPalette } from '../global/variables/colors';
|
|
6
|
-
import { extractColor } from '../utils/utils';
|
|
7
|
-
import tailwindColor from 'tailwindcss/colors';
|
|
8
|
-
export class ColorHelper {
|
|
9
|
-
}
|
|
10
|
-
ColorHelper.isHex = (str) => /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(str);
|
|
11
|
-
ColorHelper.isRgb = (str) => /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(str);
|
|
12
|
-
ColorHelper.isRgba = (str) => /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(str);
|
|
13
|
-
ColorHelper.isHsl = (str) => /^hsl\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%)\)$/.test(str);
|
|
14
|
-
ColorHelper.isHsla = (str) => /^hsla\((\d{1,3}),\s*(\d{1,3}%),\s*(\d{1,3}%),\s*(\d{1,3})\)$/.test(str);
|
|
15
|
-
ColorHelper.isVariable = (str) => /^var\((.*)\)$/.test(str);
|
|
16
|
-
ColorHelper.extractVariable = (str) => str.match(/^var\((.*)\)$/)[1];
|
|
17
|
-
ColorHelper.convertColorToHex = (color) => {
|
|
18
|
-
if (color) {
|
|
19
|
-
if (ColorHelper.isVariable(color)) {
|
|
20
|
-
const extractColor = ColorHelper.extractVariable(color);
|
|
21
|
-
return getComputedStyle(document.documentElement).getPropertyValue(extractColor);
|
|
22
|
-
}
|
|
23
|
-
if (ColorHelper.isHex(color)) {
|
|
24
|
-
return color;
|
|
25
|
-
}
|
|
26
|
-
if (ColorHelper.isRgb(color)) {
|
|
27
|
-
const rgb = color.match(/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/);
|
|
28
|
-
return `#${(0x1000000 + parseInt(rgb[1]) * 0x10000 + parseInt(rgb[2]) * 0x100 + parseInt(rgb[3])).toString(16).substring(1)}`;
|
|
29
|
-
}
|
|
30
|
-
if (extractColor(ColorPalette, color)) {
|
|
31
|
-
return extractColor(ColorPalette, color);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
ColorHelper.reverseColor = (color) => {
|
|
36
|
-
let hexColor = ColorHelper.convertColorToHex(color).trim();
|
|
37
|
-
if (hexColor) {
|
|
38
|
-
if (hexColor.length === 4) {
|
|
39
|
-
hexColor = `#${hexColor[1]}${hexColor[1]}${hexColor[2]}${hexColor[2]}${hexColor[3]}${hexColor[3]}`;
|
|
40
|
-
}
|
|
41
|
-
const r = parseInt(hexColor.substring(1, 3), 16);
|
|
42
|
-
const g = parseInt(hexColor.substring(3, 5), 16);
|
|
43
|
-
const b = parseInt(hexColor.substring(5, 7), 16);
|
|
44
|
-
const yiq = (r * 299 + g * 587 + b * 114) / 1000;
|
|
45
|
-
return yiq >= 200 ? '#475569' : '#f8fafc';
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
ColorHelper.dsColor = (color) => 'var(--bcm-new-ds-color-' + color + ')';
|
|
49
|
-
ColorHelper.getTwColorToHex = (colorName) => ColorHelper.getTwColor(colorName) || tailwindColor['blue']['500'];
|
|
50
|
-
ColorHelper.getTwColor = (colorName, checkTw = false) => {
|
|
51
|
-
if (tailwindColor[colorName]) {
|
|
52
|
-
return tailwindColor[colorName];
|
|
53
|
-
}
|
|
54
|
-
const splitted = colorName.split('-');
|
|
55
|
-
const grade = splitted[splitted.length - 1];
|
|
56
|
-
const swatch = splitted.slice(0, splitted.length - 1).join('-');
|
|
57
|
-
if (tailwindColor[swatch] && tailwindColor[swatch][grade]) {
|
|
58
|
-
return checkTw ? 1 : tailwindColor[swatch][grade];
|
|
59
|
-
}
|
|
60
|
-
else if (tailwindColor[swatch]) {
|
|
61
|
-
return checkTw ? 2 : tailwindColor[swatch];
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
console.warn('Color not found in tailwind colors: ' + colorName);
|
|
65
|
-
return 0;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
// slate => slate-500
|
|
69
|
-
// slate-700 => slate-700
|
|
70
|
-
ColorHelper.twColor = (colorName, tone = '500') => {
|
|
71
|
-
const newColor = colorName && colorName.indexOf('-') === -1 ? `${colorName}-${tone}` : colorName;
|
|
72
|
-
const getTw = ColorHelper.getTwColor(newColor, true);
|
|
73
|
-
if (getTw === 1) {
|
|
74
|
-
return newColor;
|
|
75
|
-
}
|
|
76
|
-
if (getTw === 2) {
|
|
77
|
-
return colorName;
|
|
78
|
-
}
|
|
79
|
-
return 'blue-500';
|
|
80
|
-
};
|
|
81
|
-
ColorHelper.twColorReverse = (color) => ColorHelper.reverseColor(ColorHelper.getTwColorToHex(color));
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { FloatingUI } from '@bcm/utils';
|
|
6
|
-
import { Generate } from './generate';
|
|
7
|
-
import { StringHelper } from './string-helper';
|
|
8
|
-
export class ContentHelper {
|
|
9
|
-
constructor(props) {
|
|
10
|
-
this.target = () => document.getElementById(this.targetId);
|
|
11
|
-
this.listener = () => {
|
|
12
|
-
window.addEventListener('resize', this.calculatePosition.bind(this));
|
|
13
|
-
window.addEventListener('scroll', this.calculatePosition.bind(this));
|
|
14
|
-
this.calculatePosition();
|
|
15
|
-
};
|
|
16
|
-
this.init = () => {
|
|
17
|
-
this.box();
|
|
18
|
-
};
|
|
19
|
-
this.box = () => {
|
|
20
|
-
if (this.el)
|
|
21
|
-
return this.el;
|
|
22
|
-
this.el = Generate.createElement('div', {
|
|
23
|
-
'id': `${this.targetId}-content-box`,
|
|
24
|
-
'role': 'popover',
|
|
25
|
-
'class': 'tw-bg-white tw-shadow tw-rounded tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300',
|
|
26
|
-
'aria-hidden': 'true',
|
|
27
|
-
});
|
|
28
|
-
this.el.appendChild(this.self);
|
|
29
|
-
return this.el;
|
|
30
|
-
};
|
|
31
|
-
this.calculatePosition = () => {
|
|
32
|
-
if (this.target() && this.el) {
|
|
33
|
-
FloatingUI(this.target(), this.box(), {
|
|
34
|
-
placement: this.placement,
|
|
35
|
-
offset: 2,
|
|
36
|
-
arrow: false,
|
|
37
|
-
arrowColor: ``,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
this.show = () => {
|
|
42
|
-
if (this.box()) {
|
|
43
|
-
this.box().style.display = 'block';
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
this.hide = () => {
|
|
47
|
-
if (this.box()) {
|
|
48
|
-
this.box().style.display = 'none';
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
this.toggle = () => {
|
|
52
|
-
const click = this.box().style.display;
|
|
53
|
-
this.box().style.display = StringHelper.isNullOrEmpty(click) ? 'block' : click == 'block' ? 'none' : 'block';
|
|
54
|
-
};
|
|
55
|
-
const { self, targetId, trigger, placement, open } = props;
|
|
56
|
-
this.self = self;
|
|
57
|
-
this.targetId = targetId;
|
|
58
|
-
this.trigger = trigger;
|
|
59
|
-
this.placement = placement || 'bottom-start';
|
|
60
|
-
this.open = open || false;
|
|
61
|
-
this.init();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { StatusProps } from '../components/molecules/alert/types';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import { version } from '../../package.json';
|
|
8
|
-
import { Build } from '@stencil/core';
|
|
9
|
-
import snq from 'snq';
|
|
10
|
-
const allowedDomains = ['localhost', 'beta-regression.bromcomcloud.com', 'beta-scrum.bromcomcloud.com', 'beta-kanban.bromcomcloud.com'];
|
|
11
|
-
const isAllowedDomain = () => {
|
|
12
|
-
const hostname = window.location.hostname;
|
|
13
|
-
return allowedDomains.includes(hostname);
|
|
14
|
-
};
|
|
15
|
-
if (isAllowedDomain()) {
|
|
16
|
-
console.log(`%cbromcom ui%c version: ${version}-${Build.isDev ? 'd' : 'p'} `, `color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px`, `font-size:10px;`);
|
|
17
|
-
}
|
|
18
|
-
export class Generate {
|
|
19
|
-
}
|
|
20
|
-
Generate.UID = () => Math.random().toString(36).substr(2, 9);
|
|
21
|
-
Generate.getIconAttrWithStatusType = (status, loading = false) => {
|
|
22
|
-
if (loading)
|
|
23
|
-
return { icon: 'far fa-spinner-third fa-spin' };
|
|
24
|
-
switch (status) {
|
|
25
|
-
case StatusProps.info:
|
|
26
|
-
return { icon: 'far fa-info-circle' };
|
|
27
|
-
case StatusProps.error:
|
|
28
|
-
return { icon: 'far fa-times-circle' };
|
|
29
|
-
case StatusProps.warning:
|
|
30
|
-
return { icon: 'far fa-exclamation-circle' };
|
|
31
|
-
case StatusProps.success:
|
|
32
|
-
return { icon: 'far fa-check-circle' };
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
Generate.createComponent = (el, props, area = 'append-area') => {
|
|
36
|
-
let container = area ? document.querySelector(area) : document.body;
|
|
37
|
-
if (area && !container) {
|
|
38
|
-
container = document.createElement('div');
|
|
39
|
-
container.id = 'append-area';
|
|
40
|
-
document.body.appendChild(container);
|
|
41
|
-
container.style.visibility = 'hidden';
|
|
42
|
-
container.style.opacity = '0';
|
|
43
|
-
}
|
|
44
|
-
let element = document.getElementById(props.id);
|
|
45
|
-
if (!element) {
|
|
46
|
-
element = document.createElement(el);
|
|
47
|
-
}
|
|
48
|
-
// debugger;
|
|
49
|
-
Object.keys(props).forEach(key => {
|
|
50
|
-
element[key] = props[key];
|
|
51
|
-
});
|
|
52
|
-
container.appendChild(element);
|
|
53
|
-
return element;
|
|
54
|
-
};
|
|
55
|
-
Generate.createElement = (tag = 'div', props) => {
|
|
56
|
-
let element = document.getElementById(props.id);
|
|
57
|
-
if (!element) {
|
|
58
|
-
element = document.createElement(tag);
|
|
59
|
-
}
|
|
60
|
-
Object.keys(props).forEach(key => {
|
|
61
|
-
if (key == 'innerHTML') {
|
|
62
|
-
element[key] = props[key];
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
element.setAttribute(key, props[key]);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
document.body.appendChild(element);
|
|
69
|
-
return element;
|
|
70
|
-
};
|
|
71
|
-
Generate.debounceInput = (func, wait, immediate, callBack) => {
|
|
72
|
-
let timeout;
|
|
73
|
-
return function () {
|
|
74
|
-
let context = this, args = arguments;
|
|
75
|
-
if (callBack)
|
|
76
|
-
callBack.apply(context, args);
|
|
77
|
-
let later = function () {
|
|
78
|
-
timeout = null;
|
|
79
|
-
if (!immediate)
|
|
80
|
-
func.apply(context, args);
|
|
81
|
-
};
|
|
82
|
-
let callNow = immediate && !timeout;
|
|
83
|
-
clearTimeout(timeout);
|
|
84
|
-
timeout = setTimeout(later, wait);
|
|
85
|
-
if (callNow)
|
|
86
|
-
func.apply(context, args);
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
Generate.flatArray = arr => {
|
|
90
|
-
return arr.reduce((acc, val) => {
|
|
91
|
-
return acc.concat(Array.isArray(val) ? Generate.flatArray(val) : val);
|
|
92
|
-
}, []);
|
|
93
|
-
};
|
|
94
|
-
Generate.reverseNodeList = node_list => {
|
|
95
|
-
let arr = [];
|
|
96
|
-
for (let i = node_list.length - 1; i >= 0; i--) {
|
|
97
|
-
arr.push(node_list[i]);
|
|
98
|
-
}
|
|
99
|
-
return arr;
|
|
100
|
-
};
|
|
101
|
-
Generate.findEventPathWithKey = (event, key, items) => {
|
|
102
|
-
items = Array.isArray(items) ? items : [items];
|
|
103
|
-
let path = event.composedPath() || event.path;
|
|
104
|
-
if (path) {
|
|
105
|
-
return path.filter((element) => items.includes(element[key]))[0] !== undefined;
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
Generate.findEventPathHasAttribute = (event, key) => {
|
|
109
|
-
let path = event.composedPath() || event.path;
|
|
110
|
-
if (path) {
|
|
111
|
-
return snq(() => !!path.find((element) => element.hasAttribute(key)), false);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
Generate.findEventTarget = (event, items) => {
|
|
115
|
-
items = Array.isArray(items) ? items : [items];
|
|
116
|
-
let target = event.target || event.srcElement;
|
|
117
|
-
if (target) {
|
|
118
|
-
return items.includes(target);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
Generate.findEventPathWithNodeName = (event, nodeName) => {
|
|
122
|
-
let path = event.composedPath() || event.path;
|
|
123
|
-
if (path) {
|
|
124
|
-
return path.filter((element) => element.nodeName === nodeName)[0];
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
Generate.findEventPath = (event, items) => {
|
|
128
|
-
items = Array.isArray(items) ? items : [items];
|
|
129
|
-
let path = event.composedPath() || event.path;
|
|
130
|
-
if (path) {
|
|
131
|
-
return path.filter((element) => items.includes(element))[0] !== undefined;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
Generate.objectIsEmpty = obj => Object.keys(obj).length === 0 && obj.constructor === Object;
|
|
135
|
-
Generate.convertIdsToNestedData = (ids, checklist) => {
|
|
136
|
-
let result = [];
|
|
137
|
-
let found = [];
|
|
138
|
-
checklist.forEach(item => {
|
|
139
|
-
if (ids && ids.indexOf(item.id) > -1) {
|
|
140
|
-
result.push(item);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
if (item.items) {
|
|
144
|
-
found = Generate.convertIdsToNestedData(ids, item.items);
|
|
145
|
-
if (found.length > 0) {
|
|
146
|
-
item.items = found;
|
|
147
|
-
result.push(item);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
return result;
|
|
153
|
-
};
|
|
154
|
-
//nodelist to array
|
|
155
|
-
Generate.nodeListToArray = nodeList => {
|
|
156
|
-
return Array.prototype.slice.call(nodeList);
|
|
157
|
-
};
|
|
158
|
-
Generate.setAttributes = (item, obj) => {
|
|
159
|
-
Object.keys(obj).forEach(key => {
|
|
160
|
-
item.setAttribute(key, obj[key]);
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
Generate.computedStyle = (element, property) => window.getComputedStyle(element, null).getPropertyValue(property);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
export * from './color-helper';
|
|
6
|
-
export * from './datetime-helper';
|
|
7
|
-
export * from './generate';
|
|
8
|
-
export * from './number-helper';
|
|
9
|
-
export * from './string-helper';
|
|
10
|
-
export * from './validators';
|
|
11
|
-
export * from './tooltip-helper';
|
|
12
|
-
export * from './popover-helper';
|
|
13
|
-
export * from './content-helper';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import snq from "snq";
|
|
6
|
-
export class NumberHelper {
|
|
7
|
-
}
|
|
8
|
-
NumberHelper.isNumber = (str) => snq(() => /^[0-9]+$/i.test(str));
|
|
9
|
-
NumberHelper.convertToNumber = (str) => snq(() => Number(str));
|
|
10
|
-
NumberHelper.replaceNumber = (str) => snq(() => str.replace(/[^0-9]/g, ''));
|
|
11
|
-
NumberHelper.replaceFloat = (str) => snq(() => str.replace(/[^0-9.]/g, ''));
|
|
12
|
-
NumberHelper.toFixed = (num, fixed) => snq(() => num.toFixed(fixed));
|
|
13
|
-
NumberHelper.parseFloatFixed = (str, fixed) => snq(() => parseFloat(NumberHelper.replaceFloat(str)).toFixed(fixed));
|
|
14
|
-
NumberHelper.getDecimalLength = (str) => snq(() => str.split('.')[1] ? str.split('.')[1].length : 0);
|
|
15
|
-
NumberHelper.toNumber = (str) => snq(() => Number(str.replace(/[^0-9.]/g, '')));
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { FloatingUI } from '@bcm/utils';
|
|
6
|
-
import { ColorHelper, Generate, StringHelper } from '@bcm/helpers';
|
|
7
|
-
export class Popover {
|
|
8
|
-
constructor({ content, message, targetId, placement = 'top', color = 'slate-700', trigger = 'none' }) {
|
|
9
|
-
this.bgColor = () => ColorHelper.twColor(this.color, 700);
|
|
10
|
-
this.exepcitonColors = {
|
|
11
|
-
white: 'slate-300',
|
|
12
|
-
black: 'slate-700',
|
|
13
|
-
};
|
|
14
|
-
this.target = () => document.getElementById(this.targetId);
|
|
15
|
-
this.init = () => {
|
|
16
|
-
console.log(this.content, this.message);
|
|
17
|
-
const inner = `<div class="tw-z-[1] tw-rounded tw-py-2 tw-bg-${this.bgColor()}">
|
|
18
|
-
${this.message ? `<div class="tw-font-medium tw-w-full tw-pb-1 tw-px-4">${StringHelper.trim(this.message)}</div>` : ''}
|
|
19
|
-
${this.content ? `<div class="tw-font-normal tw-px-4">${StringHelper.trim(this.content)}</div>` : ''}
|
|
20
|
-
</div>`;
|
|
21
|
-
this.el = Generate.createElement('div', {
|
|
22
|
-
'id': `${this.targetId}-popover-box`,
|
|
23
|
-
'class': `
|
|
24
|
-
tw-whitespace-normal tw-break-words tw-block tw-font-sans tw-pointer-events-none tw-max-w-[256px] tw-rounded tw-bg-${this.bgColor()} tw-text-white tw-text-3 tw-absolute tw-top-0 tw-left-0 tw-z-tooltip tw-opacity-0 tw-transition-opacity tw-duration-300
|
|
25
|
-
tw-shadow`,
|
|
26
|
-
'role': 'popover',
|
|
27
|
-
'aria-hidden': 'true',
|
|
28
|
-
'style': `color: ${ColorHelper.twColorReverse(this.bgColor())}`,
|
|
29
|
-
'innerHTML': inner,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
this.update = () => {
|
|
33
|
-
this.el = document.getElementById(this.id);
|
|
34
|
-
if (this.el) {
|
|
35
|
-
this.hide();
|
|
36
|
-
this.show();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
this.listener = () => {
|
|
40
|
-
window.addEventListener('resize', this.calculatePosition.bind(this));
|
|
41
|
-
window.addEventListener('scroll', this.calculatePosition.bind(this));
|
|
42
|
-
if (this.trigger && this.target()) {
|
|
43
|
-
switch (this.trigger) {
|
|
44
|
-
case 'click':
|
|
45
|
-
this.target().addEventListener('click', this.toggle.bind(this));
|
|
46
|
-
break;
|
|
47
|
-
case 'hover':
|
|
48
|
-
this.target().addEventListener('mouseenter', this.show.bind(this));
|
|
49
|
-
this.target().addEventListener('mouseleave', this.hide.bind(this));
|
|
50
|
-
break;
|
|
51
|
-
case 'focus':
|
|
52
|
-
this.target().addEventListener('focus', this.show.bind(this), true);
|
|
53
|
-
this.target().addEventListener('blur', this.hide.bind(this), true);
|
|
54
|
-
break;
|
|
55
|
-
default:
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
this.calculatePosition();
|
|
60
|
-
};
|
|
61
|
-
this.calculatePosition = () => {
|
|
62
|
-
this.el = document.getElementById(this.id);
|
|
63
|
-
if (this.el) {
|
|
64
|
-
FloatingUI(this.target(), this.el, {
|
|
65
|
-
placement: this.placement,
|
|
66
|
-
offset: 8,
|
|
67
|
-
arrow: true,
|
|
68
|
-
arrowColor: `tw-bg-${this.bgColor()}`,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
this.show = () => {
|
|
73
|
-
if (this.message) {
|
|
74
|
-
this.init();
|
|
75
|
-
this.calculatePosition();
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.hide();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
this.hide = () => {
|
|
82
|
-
this.el = document.getElementById(this.id);
|
|
83
|
-
if (this.el) {
|
|
84
|
-
this.el.remove();
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
this.toggle = () => {
|
|
88
|
-
this.el = document.getElementById(this.id);
|
|
89
|
-
if (this.el) {
|
|
90
|
-
this.hide();
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
this.show();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
this.content = content;
|
|
97
|
-
this.message = message;
|
|
98
|
-
this.targetId = targetId;
|
|
99
|
-
this.placement = placement;
|
|
100
|
-
this.color = color;
|
|
101
|
-
this.trigger = trigger;
|
|
102
|
-
this.id = targetId + '-popover-box';
|
|
103
|
-
}
|
|
104
|
-
}
|